summaryrefslogtreecommitdiffstats
path: root/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid
blob: e601047122b53e94744484cd7489eaef555a99e0 (plain)
1
2
3
4
#!/bin/sh
if [ ! -e /etc/hostid ];then
    dd if=/dev/urandom bs=1 count=4 | hexdump -e '8 "%x"' > /etc/hostid
fi