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 /rc.sysinit | |
parent | f6081f262419c2a4880d372636e391a52e148782 (diff) | |
download | initscripts-e4398c2e693441b8844645ee69fd3b7e483b3530.tar.xz |
added the MODULES=() line to rc.conf, with loading in rc.sysinit
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |