From: Hauke Mehrtens Date: Sat, 7 Mar 2009 12:58:08 +0000 (+0000) Subject: On shutdown disabled every mounted swap device. Fixes #4721 Thanks to Angel Marin X-Git-Tag: reboot~24287 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ac154fc9c79b959edb7eff03388d2e470c90579;p=oweals%2Fopenwrt.git On shutdown disabled every mounted swap device. Fixes #4721 Thanks to Angel Marin SVN-Revision: 14770 --- 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 }