summaryrefslogtreecommitdiff
path: root/package/base-files/files
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 /package/base-files/files
parent863afccae82eba557fb26ac46deb7de9881b113b (diff)
downloadmtk-20170518-b73eedd62bfbe7513a3c3eb7121774267f4c7067.zip
mtk-20170518-b73eedd62bfbe7513a3c3eb7121774267f4c7067.tar.gz
mtk-20170518-b73eedd62bfbe7513a3c3eb7121774267f4c7067.tar.bz2
work aroung error message during boot if swapon is nt installed
SVN-Revision: 12087
Diffstat (limited to 'package/base-files/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 cca8761..b7cc209 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() {