boot: make use of kmodloader if it is available
authorJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:02:28 +0000 (19:02 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:02:28 +0000 (19:02 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36428

package/base-files/files/etc/init.d/boot

index 67db0d2a6aec1a2a3d5dab3097cfb08349fb4282..4f35eac7b35cc49f80920b89c441a44106b1b68b 100755 (executable)
@@ -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