summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
new file mode 100755
index 0000000000..a4fb821d91
--- /dev/null
+++ b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
@@ -0,0 +1,32 @@
1### BEGIN INIT INFO
2# Provides: umountnfs
3# Required-Start:
4# Required-Stop: umountfs
5# Should-Stop: $network $portmap
6# Default-Start:
7# Default-Stop: 0 6
8# Short-Description: Unmount all network filesystems
9### END INIT INFO
10
11PATH=/sbin:/bin:/usr/sbin:/usr/bin
12
13# Write a reboot record to /var/log/wtmp before unmounting
14halt -w
15
16echo "Unmounting remote filesystems..."
17
18test -f /etc/fstab && (
19
20#
21# Read through fstab line by line and unount network file systems
22#
23while read device mountpt fstype options
24do
25 if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs
26 then
27 umount -f $mountpt
28 fi
29done
30) < /etc/fstab
31
32: exit 0