fix quilt variable and stampfile usage for host builds
[openwrt.git] / package / base-files / files / etc / init.d / fstab
index cca8761..840350c 100755 (executable)
@@ -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
 }
 
This page took 0.021831 seconds and 4 git commands to generate.