aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-08-04 08:50:16 +0000
committerJohn Crispin <john@openwrt.org>2008-08-04 08:50:16 +0000
commitb73eedd62bfbe7513a3c3eb7121774267f4c7067 (patch)
tree7ef6d366ea7259deedab3ecebbe3bb6eec487cb4
parent863afccae82eba557fb26ac46deb7de9881b113b (diff)
downloadupstream-b73eedd62bfbe7513a3c3eb7121774267f4c7067.tar.gz
upstream-b73eedd62bfbe7513a3c3eb7121774267f4c7067.tar.bz2
upstream-b73eedd62bfbe7513a3c3eb7121774267f4c7067.zip
work aroung error message during boot if swapon is nt installed
SVN-Revision: 12087
-rwxr-xr-xpackage/base-files/files/etc/init.d/fstab2
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() {