# By Chih-Wei Huang <cwhuang@linux.org.tw>
# and Thorsten Glaser <tg@mirbsd.org>
#
-# Last updated 2015/10/05
+# Last updated 2015/10/23
#
# License: GNU Public License
# We explicitely grant the right to use the scripts
fi
# ensure keyboard driver is loaded
-[ -n "$INSTALL" -o -n "$DEBUG" ] && modprobe atkbd
+[ -n "$INSTALL" -o -n "$DEBUG" ] && busybox modprobe atkbd
if [ 0$DEBUG -gt 0 ]; then
echo -e "\nType 'exit' to continue booting...\n"
#
# By Chih-Wei Huang <cwhuang@linux.org.tw>
-# Last updated 2015/10/20
+# Last updated 2015/10/23
#
# License: GNU Public License
# We explicitely grant the right to use the scripts
tmp=/tmp/dev2mod
echo 'dev2mod() { while read dev; do case $dev in' > $tmp
sort -r /lib/modules/`uname -r`/modules.alias | \
- sed -n 's/^alias *\([^ ]*\) *\(.*\)/\1)modprobe \2;;/p' >> $tmp
+ sed -n 's/^alias *\([^ ]*\) *\(.*\)/\1)busybox modprobe \2;;/p' >> $tmp
echo 'esac; done; }' >> $tmp
source $tmp
cat /sys/bus/*/devices/*/modalias | dev2mod
load_modules()
{
- if [ -n "$FOUND" ]; then
- [ -n "$PREDEV" ] && modprobe $PREDEV
- [ -n "$FB0DEV" -a -z "$UVESA_MODE" ] && modprobe $FB0DEV
- [ -n "$LANDEV" ] && modprobe $LANDEV
- [ -n "$WIFDEV" ] && modprobe $WIFDEV
- [ -n "$SNDDEV" ] && modprobe $SNDDEV
- [ -n "$CAMDEV" ] && modprobe $CAMDEV
- else
+ if [ -z "$FOUND" ]; then
auto_detect
fi
# 3G modules
for m in $EXTMOD; do
- modprobe $m
+ busybox modprobe $m
done
}