aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/init.d/boot
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-04-25 19:02:28 +0000
committerJohn Crispin <john@openwrt.org>2013-04-25 19:02:28 +0000
commit39469dea7f2f0fe1d68e27ca2f790e44e03f3126 (patch)
tree9ba96d576832fe4b6b5780beccd94bee5ebb83ed /package/base-files/files/etc/init.d/boot
parenta7ffc0b443c7555a5d1feba7a1f57a3c6b4b1bc7 (diff)
downloadupstream-39469dea7f2f0fe1d68e27ca2f790e44e03f3126.tar.gz
upstream-39469dea7f2f0fe1d68e27ca2f790e44e03f3126.tar.bz2
upstream-39469dea7f2f0fe1d68e27ca2f790e44e03f3126.zip
boot: make use of kmodloader if it is available
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36428
Diffstat (limited to 'package/base-files/files/etc/init.d/boot')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 67db0d2a6a..4f35eac7b3 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -48,7 +48,11 @@ start() {
grep -q debugfs /proc/filesystems && mount -o noatime -t debugfs debugfs /sys/kernel/debug
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
- load_modules /etc/modules.d/*
+ if [ -f /sbin/kmodloader ]; then
+ /sbin/kmodloader
+ else
+ load_modules /etc/modules.d/*
+ fi
# allow wifi modules time to settle
sleep 1