summaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-10 10:45:04 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-10 10:45:04 +0000
commit3192ed8d6e2a4bd1299ae9d419c774586a324ffb (patch)
tree41eced6fda6e052e9d16fded3f1a5477ac1a486c /package/base-files
parentb2f43424402231050937792fb8b78d0184643a98 (diff)
unmount filesystems at shutdown
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7166 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-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 000000000..a4e477e2e
--- /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
+}