Don't print randomness error when booting from install cd.

This commit is contained in:
Ben Gras 2006-01-17 17:57:40 +00:00
parent 966905d295
commit 428f9d63c4

View file

@ -155,10 +155,14 @@ start)
;;
stop|down)
# Save random data.
bootcd="`/bin/sysenv bootcd`"
if dd if=/dev/random of=$RANDOM_FILE.new bs=1024 count=1 2>/dev/null
then
mv $RANDOM_FILE.new $RANDOM_FILE
else
echo 'Failed to save random data.'
if [ "$bootcd" != 1 ]
then
echo 'Failed to save random data.'
fi
fi
esac