work aroung error message during boot if swapon is nt installed
authorJohn Crispin <john@openwrt.org>
Mon, 4 Aug 2008 08:50:16 +0000 (08:50 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 4 Aug 2008 08:50:16 +0000 (08:50 +0000)
SVN-Revision: 12087

package/base-files/files/etc/init.d/fstab

index cca8761..b7cc209 100755 (executable)
@@ -55,7 +55,7 @@ start() {
        config_foreach do_mount mount
        config_foreach do_swapon swap
        mount -a
-       swapon -a
+       [ -x /sbin/swapon ] && swapon -a
 }
 
 stop() {