diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-04 08:50:16 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-04 08:50:16 +0000 |
commit | 1cc41c880866d414c4b881b9fbf68a5e112f3248 (patch) | |
tree | 9add9470c4088c5d86ee9afca78b0776dc135435 /package | |
parent | 1cc4a34061aa36b44a843e89ce618a3c08164d8d (diff) |
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
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/etc/init.d/fstab | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |