summaryrefslogtreecommitdiff
path: root/package
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 /package
parentbef40307bb2843b303b80d82b80a0b4b89f90878 (diff)
downloadmtk-20170518-f0fa2a3de5c7c71c1506a13d690d7bdc4f0b9bb3.zip
mtk-20170518-f0fa2a3de5c7c71c1506a13d690d7bdc4f0b9bb3.tar.gz
mtk-20170518-f0fa2a3de5c7c71c1506a13d690d7bdc4f0b9bb3.tar.bz2
unmount filesystems at shutdown
SVN-Revision: 7166
Diffstat (limited to 'package')
-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 0000000..a4e477e
--- /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
+}