From: John Crispin Date: Thu, 25 Apr 2013 19:02:28 +0000 (+0000) Subject: boot: make use of kmodloader if it is available X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=39469dea7f2f0fe1d68e27ca2f790e44e03f3126;p=openwrt%2Fstaging%2Fthess.git boot: make use of kmodloader if it is available Signed-off-by: John Crispin SVN-Revision: 36428 --- 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