[Pkg-sysvinit-commits] r185 -
sysvinit/trunk/debian/initscripts/etc/init.d
Thomas Hood
jdthood-guest at costa.debian.org
Mon Nov 21 11:56:19 UTC 2005
Author: jdthood-guest
Date: 2005-11-21 11:56:18 +0000 (Mon, 21 Nov 2005)
New Revision: 185
Modified:
sysvinit/trunk/debian/initscripts/etc/init.d/umountnfs.sh
Log:
Remove old Miquel version comment; fix indentation
Modified: sysvinit/trunk/debian/initscripts/etc/init.d/umountnfs.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/umountnfs.sh 2005-11-21 11:54:40 UTC (rev 184)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/umountnfs.sh 2005-11-21 11:56:18 UTC (rev 185)
@@ -14,9 +14,6 @@
# devfs, devpts, usbfs, sysfs) that are not mounted
# at the top-level.
### END INIT INFO
-#
-# Version: @(#)umountnfs 2.85-23 29-Jul-2004 miquels at cistron.nl
-#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@ -26,15 +23,15 @@
RELEASE=`uname -r`
case "${KERNEL}:${RELEASE}" in
- Linux:[01].*|Linux:2.[01].*)
- FLAGS=""
- ;;
- Linux:2.[23].*|Linux:2.4.?|Linux:2.4.?-*|Linux:2.4.10|Linux:2.4.10-*)
- FLAGS="-f"
- ;;
- *)
- FLAGS="-f -l"
- ;;
+ Linux:[01].*|Linux:2.[01].*)
+ FLAGS=""
+ ;;
+ Linux:2.[23].*|Linux:2.4.?|Linux:2.4.?-*|Linux:2.4.10|Linux:2.4.10-*)
+ FLAGS="-f"
+ ;;
+ *)
+ FLAGS="-f -l"
+ ;;
esac
do_stop () {
@@ -55,17 +52,17 @@
while read DEV DIR TYPE REST
do
case "$DIR" in
- /|/proc|/dev|/dev/pts|/proc/*|/sys)
- continue
- ;;
+ /|/proc|/dev|/dev/pts|/proc/*|/sys)
+ continue
+ ;;
esac
case "$TYPE" in
- nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs)
- DIRS="$DIR $DIRS"
- ;;
- proc|procfs|linprocfs|devfs|devpts|usbfs|usbdevfs|sysfs)
- DIRS="$DIR $DIRS"
- ;;
+ nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs)
+ DIRS="$DIR $DIRS"
+ ;;
+ proc|procfs|linprocfs|devfs|devpts|usbfs|usbdevfs|sysfs)
+ DIRS="$DIR $DIRS"
+ ;;
esac
done
exec </dev/null
@@ -79,19 +76,20 @@
}
case "$1" in
- start)
- ;;
- restart|reload|force-reload)
- echo "Error: argument '$1' not supported" >&2
- exit 3
- ;;
- stop)
- do_stop
- ;;
- *)
- echo "Usage: $0 start|stop" >&2
- exit 3
- ;;
+ start)
+ # No-op
+ ;;
+ restart|reload|force-reload)
+ echo "Error: argument '$1' not supported" >&2
+ exit 3
+ ;;
+ stop)
+ do_stop
+ ;;
+ *)
+ echo "Usage: $0 start|stop" >&2
+ exit 3
+ ;;
esac
: exit 0
More information about the Pkg-sysvinit-commits
mailing list