mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
base-files: module loading is now handled by ubox/kmodloader
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37003
This commit is contained in:
parent
d0db343fc4
commit
4c43cacce0
@ -48,11 +48,7 @@ start() {
|
|||||||
grep -q debugfs /proc/filesystems && mount -o noatime -t debugfs debugfs /sys/kernel/debug
|
grep -q debugfs /proc/filesystems && mount -o noatime -t debugfs debugfs /sys/kernel/debug
|
||||||
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
|
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
|
||||||
|
|
||||||
if [ -f /sbin/kmodloader ]; then
|
/sbin/kmodloader
|
||||||
/sbin/kmodloader
|
|
||||||
else
|
|
||||||
load_modules /etc/modules.d/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
# allow wifi modules time to settle
|
# allow wifi modules time to settle
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -203,13 +203,6 @@ config_list_foreach() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
load_modules() {
|
|
||||||
[ -d /etc/modules.d ] && {
|
|
||||||
cd /etc/modules.d
|
|
||||||
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
include() {
|
include() {
|
||||||
local file
|
local file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user