From: Ben Gras Date: Tue, 17 Jan 2006 17:57:40 +0000 (+0000) Subject: Don't print randomness error when booting from install cd. X-Git-Tag: v3.1.2a~435 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=428f9d63c4860b0cbde640203e13ea3ad17c785b;p=minix.git Don't print randomness error when booting from install cd. --- diff --git a/etc/usr/rc b/etc/usr/rc index 4b9a50a7a..ba4779f34 100644 --- a/etc/usr/rc +++ b/etc/usr/rc @@ -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