diff options
author | Judd Vinet <judd@archlinux.org> | 2005-11-15 02:51:52 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-11-15 02:51:52 +0000 |
commit | 2dc0038155b978eb70be482313cc8535dadc436d (patch) | |
tree | 211ff698f3b20d73013d70d3f2aad9a87556bf67 /rc.sysinit | |
parent | abdeaf8051aaadb9f5270a14e45481a8d61e0b95 (diff) | |
download | initscripts-2dc0038155b978eb70be482313cc8535dadc436d.tar.xz |
added variables for autoloading modules, cleaned up rc.conf a bit
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -121,8 +121,6 @@ umount /proc && mount -t proc none /proc /bin/mount -a -t nonfs,nosmbfs,nocifs,noncpfs,nosysfs,nousbfs stat_done -status "Detecting Required Modules" /sbin/hwdetect -load-modules - stat_busy "Configuring System Clock" if [ "$HARDWARECLOCK" = "UTC" ]; then /sbin/hwclock --utc --hctosys @@ -216,6 +214,10 @@ fi # Load modules from the MODULES array defined in rc.conf if [ -f /proc/modules ]; then stat_busy "Loading Modules" + if [ "$MOD_AUTOLOAD" = "yes" -o "$MOD_AUTOLOAD" = "YES" ]; then + export BLACKLIST="${MOD_BLACKLIST[*]}" + /sbin/hwdetect -load-modules + fi for mod in "${MODULES[@]}"; do if [[ `echo $mod | grep '^[^\!]' | wc -l` -eq 1 ]]; then /sbin/modprobe $mod |