]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't run package rc's when booting from cd.
authorBen Gras <ben@minix3.org>
Fri, 25 Nov 2011 16:34:06 +0000 (17:34 +0100)
committerBen Gras <ben@minix3.org>
Mon, 28 Nov 2011 13:32:18 +0000 (14:32 +0100)
etc/usr/rc

index 69fe0c529c304e408f23fb33c1f36e59246b7005..d09af1644f91b3e31efbafeb8867a4a57c3ab2d8 100644 (file)
@@ -11,6 +11,9 @@ if [ ! "$SERVICES_DIRS" ]
 then   SERVICES_DIRS=/usr/sbin
 fi
 
+# Booting from cd?
+bootcd="`/bin/sysenv bootcd`"
+
 case "$#:$1" in
 1:start|1:stop|1:down)
     action=$1
@@ -227,7 +230,7 @@ d=
 # Let packages run their own scripts
 for d in /usr/local/etc/rc.d /usr/pkg/etc/rc.d
 do
-if [ -d "$d" ]
+if [ -d "$d" -a -z "$bootcd" ]
 then   ( if cd $d
        then
                echo -n "Local packages ($action): "