diff options
-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 |