summaryrefslogtreecommitdiffstats
path: root/minikrebs/profiles/krebs/customfiles/usr/bin
diff options
context:
space:
mode:
Diffstat (limited to 'minikrebs/profiles/krebs/customfiles/usr/bin')
-rwxr-xr-xminikrebs/profiles/krebs/customfiles/usr/bin/genhostid4
1 files changed, 1 insertions, 3 deletions
diff --git a/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid
index e6010471..463e04b7 100755
--- a/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid
+++ b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid
@@ -1,4 +1,2 @@
#!/bin/sh
-if [ ! -e /etc/hostid ];then
- dd if=/dev/urandom bs=1 count=4 | hexdump -e '8 "%x"' > /etc/hostid
-fi
+dd if=/dev/urandom bs=1 count=4> /etc/hostid