base-files: module loading is now handled by ubox/kmodloader
authorJohn Crispin <john@openwrt.org>
Fri, 21 Jun 2013 16:53:59 +0000 (16:53 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 21 Jun 2013 16:53:59 +0000 (16:53 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37003

package/base-files/files/etc/init.d/boot
package/base-files/files/lib/functions.sh

index d33e8ce7f8120acba81d6ec1c8db8a519e4cd756..de6a2a6025324408e86e245eb9db27c4c4fbe19b 100755 (executable)
@@ -48,11 +48,7 @@ start() {
        grep -q debugfs /proc/filesystems && mount -o noatime -t debugfs debugfs /sys/kernel/debug
        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
 
-       if [ -f /sbin/kmodloader ]; then
-               /sbin/kmodloader
-       else
-               load_modules /etc/modules.d/*
-       fi
+       /sbin/kmodloader
 
        # allow wifi modules time to settle
        sleep 1
index f51bfea45da07ab4c38cf8a6f8a32ff246dd415a..42d76fd67dbf8e58c796fdb125201781e096ac5c 100755 (executable)
@@ -203,13 +203,6 @@ config_list_foreach() {
        done
 }
 
-load_modules() {
-       [ -d /etc/modules.d ] && {
-               cd /etc/modules.d
-               sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
-       }
-}
-
 include() {
        local file