Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /etc/rc6.d/ drwxr-xr-x |
Viewing file: Select action/file-type: #! /bin/sh ### BEGIN INIT INFO # Provides: umountnfs # Required-Start: sendsigs # Required-Stop: # Default-Start: 6 # Default-Stop: # Short-Description: Unmount all network filesystems except the root file system. # Description: Also unmounts all virtual filesystems (proc, devfs, devpts, # usbfs, sysfs) that are not mounted at the top level. ### END INIT INFO PATH=/usr/sbin:/usr/bin:/sbin:/bin KERNEL="$(uname -s)" RELEASE="$(uname -r)" . /lib/init/vars.sh . /lib/lsb/init-functions 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" ;; esac do_stop () { # Write a reboot record to /var/log/wtmp before unmounting halt -w # Remove bootclean flag files (precaution against symlink attacks) rm -f /tmp/.clean /var/lock/.clean /var/run/.clean [ "$VERBOSE" = no ] || log_action_begin_msg "Unmounting remote and non-toplevel virtual filesystems" # # Make list of points to unmount in reverse order of their creation # exec 9<&0 </proc/mounts DIRS="" while read DEV MTPT FSTYPE REST do case "$MTPT" in /|/proc|/dev|/dev/pts|/dev/shm|/proc/*|/sys|/var/run|/var/lock) continue ;; esac case "$FSTYPE" in nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs) DIRS="$MTPT $DIRS" ;; proc|procfs|linprocfs|devfs|devpts|usbfs|usbdevfs|sysfs) DIRS="$MTPT $DIRS" ;; esac done exec 0<&9 9<&- if [ "$DIRS" ] then umount $FLAGS $DIRS fi ES=$? [ "$VERBOSE" = no ] || log_action_end_msg $ES } case "$1" in start) # No-op ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop|"") do_stop ;; *) echo "Usage: umountnfs.sh [start|stop]" >&2 exit 3 ;; esac : |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0041 ]-- |