diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2006-02-16 10:23:38 +0000 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2006-02-16 10:23:38 +0000 |
commit | 207256890573ce867d4391c362b34f31a1a60865 (patch) | |
tree | a87f1c90b3d591f97caeca06e9a2c428c3582ded | |
parent | 9058c034c77ab62b91f2cd7d3637a2cb04f7c7d7 (diff) |
'upgpkg: put loading modules in front of udev and disabled depmod -A during boot'
-rwxr-xr-x | rc.sysinit | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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 |