From d9a804f344b2823947d7dfb9014eb31eb2a5f05f Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 7 Mar 2009 12:58:08 +0000 Subject: [PATCH] [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 --- package/base-files/files/etc/init.d/fstab | 1 + 1 file changed, 1 insertion(+) 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 }