From 7f60e4b4e7d9b45bfe4b76802a2e82bb4edbba9f Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 23 Mar 2006 23:32:58 +0000 Subject: Sync initscripts with OE git-svn-id: https://svn.o-hand.com/repos/poky/trunk@331 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- .../initscripts-1.0/openslug/umountnfs.sh | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 openembedded/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh (limited to 'openembedded/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh') diff --git a/openembedded/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh b/openembedded/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh deleted file mode 100644 index 994a919225..0000000000 --- a/openembedded/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh +++ /dev/null @@ -1,40 +0,0 @@ -#! /bin/sh -# -# umountnfs.sh Unmount all network filesystems. -# -PATH=/sbin:/bin:/usr/sbin:/usr/bin - -# Write a reboot record to /var/log/wtmp before unmounting -halt -w - -# Ensure /proc is mounted -test -r /proc/mounts || mount -t proc proc /proc - -echo "Unmounting remote filesystems..." - -# -# Read the list of mounted file systems and -f umount the -# known network file systems. -f says umount it even if -# the server is unreachable. Do not attempt to umount -# the root file system. Unmount in reverse order from -# that given by /proc/mounts (otherwise it may not work). -# -unmount() { - local dev mp type opts - if read dev mp type opts - then - # recurse - unmount later items - unmount - # skip /, /proc and /dev - case "$mp" in - /|/proc)return 0;; - /dev) return 0;; - esac - # then unmount this, if nfs - case "$type" in - nfs|smbfs|ncpfs) umount -f "$mp";; - esac - fi -} - -unmount