boot: make use of kmodloader if it is available

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

SVN-Revision: 36428
master
John Crispin 12 years ago
parent a7ffc0b443
commit 39469dea7f
  1. 6
      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

Loading…
Cancel
Save