From 4b7c99b961b9c2317ecd75272ef901c21f802cb3 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Wed, 28 Oct 2015 21:24:23 +0000 Subject: [PATCH] Fixes... --- board/coreboot/rootfs-additions/etc/init.d/S25hostname-spoof | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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