From: blogic Date: Mon, 4 Aug 2008 08:50:16 +0000 (+0000) Subject: work aroung error message during boot if swapon is nt installed X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=1cc41c880866d414c4b881b9fbf68a5e112f3248;p=10.03%2Fopenwrt.git work aroung error message during boot if swapon is nt installed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12087 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/etc/init.d/fstab b/package/base-files/files/etc/init.d/fstab index cca876199..b7cc209d1 100755 --- a/package/base-files/files/etc/init.d/fstab +++ b/package/base-files/files/etc/init.d/fstab @@ -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() {