From ef1720e9f89afb1637edcefd4a79e0f44eb2ba48 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 08 Aug 2013 16:12:35 -0400 Subject: /etc/init.d/mountall: Rewrite. --- (limited to 'src.etc') 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 -- cgit v0.9.1