diff options
Diffstat (limited to 'src.etc/init.d')
-rw-r--r-- | src.etc/init.d/mountall | 14 |
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 |