mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
boot: make use of kmodloader if it is available
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36428 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user