summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/mountall
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-08-08 16:12:35 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-08-08 16:12:35 (EDT)
commitef1720e9f89afb1637edcefd4a79e0f44eb2ba48 (patch)
tree73f2e98542dc830694f4f536e29eff09d68a9ad9 /src.etc/init.d/mountall
parent420fe74025198cfaecc9ef318b4edb50dd0cf37a (diff)
/etc/init.d/mountall: Rewrite.
Diffstat (limited to 'src.etc/init.d/mountall')
-rw-r--r--src.etc/init.d/mountall14
1 files changed, 11 insertions, 3 deletions
diff --git a/src.etc/init.d/mountall b/src.etc/init.d/mountall
index c40d48c..738caab 100644
--- a/src.etc/init.d/mountall
+++ b/src.etc/init.d/mountall
@@ -1,12 +1,20 @@
#!/bin/sh
+start()
+{
+ printf 'Mounting file systems... '
+ [ -r /etc/fstab ] && mount -a
+ printf 'done\n.'
+}
+
case "${1}" in
start)
- [ ! -d /dev/pts ] && mkdir /dev/pts
- mount -a
+ start
+ ;;
+ stop)
;;
*)
- printf 'Usage: %s start\n' "${0}"
+ printf 'Usage: %s {start|stop}\n' "${0}"
exit 1
;;
esac