boot: make use of kmodloader if it is available

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 36428
This commit is contained in:
John Crispin 2013-04-25 19:02:28 +00:00
parent a7ffc0b443
commit 39469dea7f

View file

@ -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