summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/fstab
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/init.d/fstab')
-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 b7cc209..840350c 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
}