]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't copy memory to rescue
authorBen Gras <ben@minix3.org>
Fri, 17 Feb 2006 16:46:08 +0000 (16:46 +0000)
committerBen Gras <ben@minix3.org>
Fri, 17 Feb 2006 16:46:08 +0000 (16:46 +0000)
local package initialization

etc/rc.rescue
etc/usr/rc

index 4f33182acb4bc939edd27f913405046bf48e0459..818d62b11b316149bdf75e784c430a0dcc0b55e9 100644 (file)
@@ -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)
index 7c4cfdd39fbdd924e6e10c54bbb70cef8169c0b6..26fd9c9d3152928867ff1ffcb2926da63a04ed8f 100644 (file)
@@ -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
+