]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't print randomness error when booting from install cd.
authorBen Gras <ben@minix3.org>
Tue, 17 Jan 2006 17:57:40 +0000 (17:57 +0000)
committerBen Gras <ben@minix3.org>
Tue, 17 Jan 2006 17:57:40 +0000 (17:57 +0000)
etc/usr/rc

index 4b9a50a7a6946831c6d9f6e322f56a9ec07a3f8d..ba4779f345d7d6d3a4469368c81043f1b9d3f6cf 100644 (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