Don't print randomness error when booting from install cd.
This commit is contained in:
parent
966905d295
commit
428f9d63c4
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue