summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-21 23:47:24 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-21 23:47:24 (EDT)
commit9cf9428ad12c2956fd3e0b5e22ca74c5a79fa31b (patch)
treee665d0e1a84c51b95b8b60a4b60ebf42952f11be
parentc39e8931d7d9049e34a7b4bed4a512572528fa20 (diff)
Add a "mountall" service script.
-rwxr-xr-xbuild4
-rw-r--r--initscripts.pkg/install1
-rw-r--r--src/etc/init.d/mountall10
3 files changed, 14 insertions, 1 deletions
diff --git a/build b/build
index 2fffb46..c93e72d 100755
--- a/build
+++ b/build
@@ -34,8 +34,10 @@ basefiles.buildstamp:
mkdir -pv var/cache var/lib/misc var/local var/lock var/log var/mail \
var/opt var/run var/spool
cd dest && \
+ mkdir etc/rc.d && \
ln -s rc etc/init.d/rcS && \
- ln -s rc etc/init.d/rcK
+ ln -s rc etc/init.d/rcK && \
+ ln -s ../init.d/mountall etc/rc.d/S01mountall
oh-installfiles $(PKGS)
oh-installdocs basefiles
oh-gencontrol $(PKGS)
diff --git a/initscripts.pkg/install b/initscripts.pkg/install
index 63b0e87..13a6451 100644
--- a/initscripts.pkg/install
+++ b/initscripts.pkg/install
@@ -1,3 +1,4 @@
/etc/inittab
/etc/init.d/
+/etc/rc.d/
/etc/fstab
diff --git a/src/etc/init.d/mountall b/src/etc/init.d/mountall
new file mode 100644
index 0000000..5675752
--- /dev/null
+++ b/src/etc/init.d/mountall
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+case "${1}" in
+ start)
+ mount -a
+ ;;
+ stop)
+ umount -a -r
+ ;;
+esac