Browse Source

On shutdown disabled every mounted swap device. Fixes #4721 Thanks to Angel Marin

SVN-Revision: 14770
Hauke Mehrtens 17 years ago
parent
commit
3ac154fc9c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/base-files/files/etc/init.d/fstab

+ 1 - 0
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
 }