From a03f679e883ecab4b70b5332b61f1af001f1d4e7 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 25 Nov 2011 17:34:06 +0100 Subject: [PATCH] Don't run package rc's when booting from cd. --- etc/usr/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): " -- 2.44.0