[Pkg-sysvinit-commits] r190 -
sysvinit/trunk/debian/initscripts/etc/init.d
Thomas Hood
jdthood-guest at costa.debian.org
Mon Nov 21 12:07:01 UTC 2005
Author: jdthood-guest
Date: 2005-11-21 12:07:01 +0000 (Mon, 21 Nov 2005)
New Revision: 190
Modified:
sysvinit/trunk/debian/initscripts/etc/init.d/umountfs
Log:
Remove old Miquel version comment; fix indentation; add quotation marks around a variable reference
Modified: sysvinit/trunk/debian/initscripts/etc/init.d/umountfs
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/umountfs 2005-11-21 12:03:41 UTC (rev 189)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/umountfs 2005-11-21 12:07:01 UTC (rev 190)
@@ -8,62 +8,58 @@
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO
-#
-# Version: @(#)umountfs 2.85-16 03-Jun-2004 miquels at cistron.nl
-#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
umask 022
. /lib/lsb/init-functions
do_stop () {
- # Umount all filesystems except root and the virtual ones
- log_action_begin_msg "Unmounting local filesystems"
+ # Umount all filesystems except root and the virtual ones
+ log_action_begin_msg "Unmounting local filesystems"
- # List all mounts, deepest mount point first
- LANG=C sort -r -k 2 /etc/mtab |
- (
- DIRS=""
- while read DEV DIR TYPE REST ; do
- case "$DIR" in
- /|/proc|/dev|/.dev|/dev/pts|/proc/*|/sys)
- continue # Ignoring virtual file systems needed later
- ;;
- esac
+ # List all mounts, deepest mount point first
+ LANG=C sort -r -k 2 /etc/mtab |
+ (
+ DIRS=""
+ while read DEV DIR TYPE REST ; do
+ case "$DIR" in
+ /|/proc|/dev|/.dev|/dev/pts|/proc/*|/sys)
+ continue # Ignoring virtual file systems needed later
+ ;;
+ esac
+ case "$TYPE" in
+ proc|procfs|linprocfs|devfs|sysfs|usbfs|usbdevfs|devpts)
+ continue # Ignoring non-tmpfs virtual file systems
+ ;;
+ esac
+ DIRS="$DIRS $DIR"
+ done
+ umount -r -d $DIRS
+ )
+ log_action_end_msg $?
- case $TYPE in
- proc|procfs|linprocfs|devfs|sysfs|usbfs|usbdevfs|devpts)
- continue # Ignoring non-tmpfs virtual file systems
- ;;
- esac
- DIRS="$DIRS $DIR"
- done
- umount -r -d $DIRS
- )
- log_action_end_msg $?
-
- # Make sure tmpfs file systems are umounted before turning off
- # swap, to avoid running out of memory if the tmpfs filesystems
- # use a lot of space.
- log_action_begin_msg "Deactivating swap"
- swapoff -a
- log_action_end_msg $?
+ # Make sure tmpfs file systems are umounted before turning off
+ # swap, to avoid running out of memory if the tmpfs filesystems
+ # use a lot of space.
+ log_action_begin_msg "Deactivating swap"
+ swapoff -a
+ log_action_end_msg $?
}
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)
+ ;;
+ 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