From 428f9d63c4860b0cbde640203e13ea3ad17c785b Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 17 Jan 2006 17:57:40 +0000 Subject: [PATCH] Don't print randomness error when booting from install cd. --- etc/usr/rc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.44.0