aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2009-03-07 12:58:08 +0000
committerHauke Mehrtens <hauke@openwrt.org>2009-03-07 12:58:08 +0000
commitd9a804f344b2823947d7dfb9014eb31eb2a5f05f (patch)
treefc0e199d8390fc33bbf6c578c9f8dd1832aa18bd /package/base-files/files
parent56ca90a338a586c7a08cf94b355e308b9c6b4801 (diff)
downloadupstream-d9a804f344b2823947d7dfb9014eb31eb2a5f05f.tar.gz
upstream-d9a804f344b2823947d7dfb9014eb31eb2a5f05f.tar.bz2
upstream-d9a804f344b2823947d7dfb9014eb31eb2a5f05f.zip
[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')
-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 b7cc209d13..840350ce19 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
}