From: Ben Gras Date: Fri, 17 Feb 2006 16:46:08 +0000 (+0000) Subject: Don't copy memory to rescue X-Git-Tag: v3.1.2a~330 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=ba667a077448a8b4081fcb798c08e1cf89db7694;p=minix.git Don't copy memory to rescue local package initialization --- diff --git a/etc/rc.rescue b/etc/rc.rescue index 4f33182ac..818d62b11 100644 --- a/etc/rc.rescue +++ b/etc/rc.rescue @@ -9,7 +9,6 @@ fi service up $DRIVERS/rescue -dev /dev/rescue -args 128 -period 4HZ mkfs /dev/rescue || exit mount /dev/rescue $RESCUE || exit -cp /usr/sbin/memory $RESCUE label=`sysenv label` case "$label" in AT) diff --git a/etc/usr/rc b/etc/usr/rc index 7c4cfdd39..26fd9c9d3 100644 --- a/etc/usr/rc +++ b/etc/usr/rc @@ -165,3 +165,21 @@ stop|down) fi fi esac + +d=/usr/local/etc/rc.d +# Let packages run their own scripts +if [ -d "$d" ] +then if cd $d + then + echo -n "Local package initialization: " + for f in * + do + if [ -x "$f" ] + then echo -n "$f " + sh "$f" "$action" + fi + done + echo " done." + fi +fi +