summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-07 12:58:08 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-07 12:58:08 +0000
commit883ca719d3ec581eb8894c6128c427556a87eae6 (patch)
treefc0e199d8390fc33bbf6c578c9f8dd1832aa18bd /package/base-files/files/etc
parent76c3e31af1f4714aee448e2d66929c8a083cd2f4 (diff)
[base-files]: On shutdown disabled every mounted swap device.
Fixes #4721 Thanks to Angel Marin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14770 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/fstab1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/fstab b/package/base-files/files/etc/init.d/fstab
index b7cc209d1..840350ce1 100755
--- a/package/base-files/files/etc/init.d/fstab
+++ b/package/base-files/files/etc/init.d/fstab
@@ -62,5 +62,6 @@ stop() {
config_load fstab
config_foreach do_unmount mount
config_foreach do_swapoff swap
+ [ -x /sbin/swapoff ] && swapoff -a
}