diff --git a/board/coreboot/rootfs-additions/etc/init.d/S25hostname-spoof b/board/coreboot/rootfs-additions/etc/init.d/S25hostname-spoof index 3beb8b8..e20c836 100755 --- a/board/coreboot/rootfs-additions/etc/init.d/S25hostname-spoof +++ b/board/coreboot/rootfs-additions/etc/init.d/S25hostname-spoof @@ -25,9 +25,9 @@ do_start() { if [ -e /usr/bin/openssl ]; then WORD=$(/usr/bin/openssl rand -hex 8) elif [ -e /usr/bin/hexdump ]; then - WORD=$(dd if=/dev/urandom bs=8 count1 2>>/dev/null | /usr/bin/hexdump -v -e '/1 "%02x"') + WORD=$(dd if=/dev/urandom bs=8 count=1 2>>/dev/null | /usr/bin/hexdump -v -e '/1 "%02x"') elif [ -e /usr/bin/od ]; then - WORD=$(dd if=/dev/urandom bs=8 count1 2>>/dev/null | /usr/bin/od -An -tx8 | tr -d ' ') + WORD=$(dd if=/dev/urandom bs=8 count=1 2>>/dev/null | /usr/bin/od -An -tx8 | tr -d ' ') else echo -e "\nERROR: Unable to set random hostname!\n" exit 1