X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f2260a8a855446efbae6eb52d121fcc0e7db7b99..a4bdef9ca9051d829ee12f9f8ae36016f0c2136e:/package/base-files/files/etc/init.d/fstab diff --git a/package/base-files/files/etc/init.d/fstab b/package/base-files/files/etc/init.d/fstab index cca876199..840350ce1 100755 --- a/package/base-files/files/etc/init.d/fstab +++ b/package/base-files/files/etc/init.d/fstab @@ -55,12 +55,13 @@ start() { config_foreach do_mount mount config_foreach do_swapon swap mount -a - swapon -a + [ -x /sbin/swapon ] && swapon -a } stop() { config_load fstab config_foreach do_unmount mount config_foreach do_swapoff swap + [ -x /sbin/swapoff ] && swapoff -a }