aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-04-25 19:02:28 +0000
committerJohn Crispin <blogic@openwrt.org>2013-04-25 19:02:28 +0000
commitb605befa7c2584d27795576ba1923e6cdaea3de6 (patch)
tree86f59427da6056e548648e37fa0021f94ef25f60 /package/base-files/files/etc
parent96b20b0377539a7beccc8dff2fd2512b7e27361c (diff)
downloadmaster-187ad058-b605befa7c2584d27795576ba1923e6cdaea3de6.tar.gz
master-187ad058-b605befa7c2584d27795576ba1923e6cdaea3de6.tar.bz2
master-187ad058-b605befa7c2584d27795576ba1923e6cdaea3de6.zip
boot: make use of kmodloader if it is available
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36428 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-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