aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-05-10 10:45:04 +0000
committerMike Baker <mbm@openwrt.org>2007-05-10 10:45:04 +0000
commitf0fa2a3de5c7c71c1506a13d690d7bdc4f0b9bb3 (patch)
treeeb9d0ee771234296ea95001fb3246674372dda1c
parentbef40307bb2843b303b80d82b80a0b4b89f90878 (diff)
downloadupstream-f0fa2a3de5c7c71c1506a13d690d7bdc4f0b9bb3.tar.gz
upstream-f0fa2a3de5c7c71c1506a13d690d7bdc4f0b9bb3.tar.bz2
upstream-f0fa2a3de5c7c71c1506a13d690d7bdc4f0b9bb3.zip
unmount filesystems at shutdown
SVN-Revision: 7166
-rwxr-xr-xpackage/base-files/files/etc/init.d/umount8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/umount b/package/base-files/files/etc/init.d/umount
new file mode 100755
index 0000000000..a4e477e2e9
--- /dev/null
+++ b/package/base-files/files/etc/init.d/umount
@@ -0,0 +1,8 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+
+STOP=99
+stop() {
+ sync
+ umount -a -r
+}