From 5d777ccc8d1291f00c59e7725ffb1996a43154f3 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 6 Jan 2013 11:58:42 +0700 Subject: minikrebs: krebs base profile - initial vomit --- minikrebs/profiles/krebs/customfiles/usr/bin/genhostid | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 minikrebs/profiles/krebs/customfiles/usr/bin/genhostid (limited to 'minikrebs/profiles/krebs/customfiles/usr/bin/genhostid') diff --git a/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid new file mode 100755 index 00000000..e6010471 --- /dev/null +++ b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid @@ -0,0 +1,4 @@ +#!/bin/sh +if [ ! -e /etc/hostid ];then + dd if=/dev/urandom bs=1 count=4 | hexdump -e '8 "%x"' > /etc/hostid +fi -- cgit v1.2.3