diff options
author | P. 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) |
commit | 9cf9428ad12c2956fd3e0b5e22ca74c5a79fa31b (patch) | |
tree | e665d0e1a84c51b95b8b60a4b60ebf42952f11be | |
parent | c39e8931d7d9049e34a7b4bed4a512572528fa20 (diff) |
Add a "mountall" service script.
-rwxr-xr-x | build | 4 | ||||
-rw-r--r-- | initscripts.pkg/install | 1 | ||||
-rw-r--r-- | src/etc/init.d/mountall | 10 |
3 files changed, 14 insertions, 1 deletions
@@ -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 |