diff options
author | Judd Vinet <judd@archlinux.org> | 2003-02-07 16:58:42 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2003-02-07 16:58:42 +0000 |
commit | e4398c2e693441b8844645ee69fd3b7e483b3530 (patch) | |
tree | 3652b4702a6a258e1aa1aeca72dd9d0310455b84 | |
parent | f6081f262419c2a4880d372636e391a52e148782 (diff) | |
download | initscripts-e4398c2e693441b8844645ee69fd3b7e483b3530.tar.xz |
added the MODULES=() line to rc.conf, with loading in rc.sysinit
-rw-r--r-- | rc.conf | 6 | ||||
-rwxr-xr-x | rc.sysinit | 7 |
2 files changed, 13 insertions, 0 deletions
@@ -16,7 +16,13 @@ HARDWARECLOCK="localtime" # HOSTNAME="myhost" + +# +# Module to load at boot-up (in this order) +# (prefix a module with a ! to disable it) # +MODULES=(!usbserial !ide-scsi) + # # Interfaces to start at boot-up (in this order) # Declare each interface then list in INTERFACES @@ -101,6 +101,13 @@ if [ "$KEYMAP" != "" ]; then status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP fi +# Load modules from the MODULES array defined in rc.conf +for mod in "${MODULES[@]}"; do + if [[ `echo $mod | grep '^[^\!]' | wc -l` -eq 1 ]]; then + /sbin/modprobe $mod + fi +done + # Screen blanks after 15 minutes idle time /usr/bin/setterm -blank 15 |