aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-08-04 08:50:16 +0000
committerJohn Crispin <blogic@openwrt.org>2008-08-04 08:50:16 +0000
commitb5a563ee16fdff62df8ed8e67c00f5a944eabc0b (patch)
tree9add9470c4088c5d86ee9afca78b0776dc135435 /package/base-files
parent8929c4a880fe4ff9db55a8cd12e8f62b8b471183 (diff)
downloadupstream-b5a563ee16fdff62df8ed8e67c00f5a944eabc0b.tar.gz
upstream-b5a563ee16fdff62df8ed8e67c00f5a944eabc0b.tar.bz2
upstream-b5a563ee16fdff62df8ed8e67c00f5a944eabc0b.zip
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/base-files')
-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() {