From: Ben Gras Date: Fri, 25 Nov 2011 16:34:06 +0000 (+0100) Subject: Don't run package rc's when booting from cd. X-Git-Tag: v3.2.0~213 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.rndc.html?a=commitdiff_plain;h=a03f679e883ecab4b70b5332b61f1af001f1d4e7;p=minix.git Don't run package rc's when booting from cd. --- diff --git a/etc/usr/rc b/etc/usr/rc index 69fe0c529..d09af1644 100644 --- a/etc/usr/rc +++ b/etc/usr/rc @@ -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): "