From 3fce6a68365fe206525d14cfc827de65f5403c9f Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Tue, 31 Oct 2017 22:40:02 +0100
Subject: [PATCH] docs: fix recommended command line to generate site seed

Without -v, hexdump would sometimes replace duplicate bytes with "*" and
a newline.
---
 docs/site-example/site.conf | 2 +-
 docs/user/site.rst          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/site-example/site.conf b/docs/site-example/site.conf
index 593d175de..be1acd43a 100644
--- a/docs/site-example/site.conf
+++ b/docs/site-example/site.conf
@@ -17,7 +17,7 @@
 
   -- 32 bytes of random data, encoded in hexacimal
   -- Must be the same of all nodes in one mesh domain
-  -- Can be generated using: echo $(hexdump -n 32 -e '1/1 "%02x"' </dev/urandom)
+  -- Can be generated using: echo $(hexdump -v -n 32 -e '1/1 "%02x"' </dev/urandom)
   site_seed = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
 
   -- Prefixes used within the mesh.
diff --git a/docs/user/site.rst b/docs/user/site.rst
index cab40aa2a..b1f46e24c 100644
--- a/docs/user/site.rst
+++ b/docs/user/site.rst
@@ -30,7 +30,7 @@ site_seed
     The recommended way to generate a value for a new site is:
     ::
 
-        echo $(hexdump -n 32 -e '1/1 "%02x"' </dev/urandom)
+        echo $(hexdump -v -n 32 -e '1/1 "%02x"' </dev/urandom)
 
 prefix4 \: optional
     The IPv4 Subnet of your community mesh network in CIDR notation, e.g.
-- 
GitLab