From ba667a077448a8b4081fcb798c08e1cf89db7694 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 17 Feb 2006 16:46:08 +0000 Subject: [PATCH] Don't copy memory to rescue local package initialization --- etc/rc.rescue | 1 - etc/usr/rc | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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 + -- 2.44.0