From: John Crispin Date: Mon, 4 Aug 2008 08:50:16 +0000 (+0000) Subject: work aroung error message during boot if swapon is nt installed X-Git-Tag: reboot~25909 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b73eedd62bfbe7513a3c3eb7121774267f4c7067;p=openwrt%2Fstaging%2Fpepe2k.git work aroung error message during boot if swapon is nt installed SVN-Revision: 12087 --- diff --git a/package/base-files/files/etc/init.d/fstab b/package/base-files/files/etc/init.d/fstab index cca8761996..b7cc209d13 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() {