summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-02-16 10:23:38 +0000
committerTobias Powalowski <tpowa@archlinux.org>2006-02-16 10:23:38 +0000
commit207256890573ce867d4391c362b34f31a1a60865 (patch)
treea87f1c90b3d591f97caeca06e9a2c428c3582ded
parent9058c034c77ab62b91f2cd7d3637a2cb04f7c7d7 (diff)
'upgpkg: put loading modules in front of udev and disabled depmod -A during boot'
-rwxr-xr-xrc.sysinit28
1 files changed, 14 insertions, 14 deletions
diff --git a/rc.sysinit b/rc.sysinit
index e5970cb..56ea9de 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -23,6 +23,19 @@ printsep
mount -n -t proc none /proc
[ "`grep sysfs /proc/filesystems`" ] && mount -n -t sysfs none /sys
+# Load modules from the MODULES array defined in rc.conf
+if ! [ "$load_modules" = "off" ]; then
+ if [ -f /proc/modules ]; then
+ stat_busy "Loading Modules"
+ for mod in "${MODULES[@]}"; do
+ if [ "$mod" = "${mod#!}" ]; then
+ /sbin/modprobe $mod
+ fi
+ done
+ stat_done
+ fi
+fi
+
if [ -e /dev/.devfsd -a -x /sbin/devfsd ]; then
# Looks like devfs is running, use it
status "Starting DevFS Daemon" /sbin/devfsd /dev
@@ -204,7 +217,7 @@ if [ "$NISDOMAINNAME" != "" ]; then
status "Setting NIS Domain Name: $NISDOMAINNAME" /bin/nisdomainname $NISDOMAINNAME
fi
-status "Updating Module Dependencies" /sbin/depmod -A
+# status "Updating Module Dependencies" /sbin/depmod -A
if [ "$KEYMAP" != "" ]; then
status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP
@@ -245,19 +258,6 @@ fi
/sbin/modprobe usbcore >/dev/null 2>&1
[ "`grep usbfs /proc/filesystems`" ] && mount -t usbfs none /proc/bus/usb
-# Load modules from the MODULES array defined in rc.conf
-if ! [ "$load_modules" = "off" ]; then
- if [ -f /proc/modules ]; then
- stat_busy "Loading Modules"
- for mod in "${MODULES[@]}"; do
- if [ "$mod" = "${mod#!}" ]; then
- /sbin/modprobe $mod
- fi
- done
- stat_done
- fi
-fi
-
# Screen blanks after 15 minutes idle time
/usr/bin/setterm -blank 15