Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37003
grep -q debugfs /proc/filesystems && mount -o noatime -t debugfs debugfs /sys/kernel/debug
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
- if [ -f /sbin/kmodloader ]; then
- /sbin/kmodloader
- else
- load_modules /etc/modules.d/*
- fi
+ /sbin/kmodloader
# allow wifi modules time to settle
sleep 1
done
}
-load_modules() {
- [ -d /etc/modules.d ] && {
- cd /etc/modules.d
- sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
- }
-}
-
include() {
local file