CONFIG_GRML2HD='yes' # check for 'grml2hd' bootoption
CONFIG_HOMEDIR='yes' # check for persistent homedir option
CONFIG_HOSTNAME='yes' # set hostname to 'grml' on systems running from CD
-CONFIG_HOTPLUG_AGENT='no' # deactivate specific hotplug agent(s) via bootparam
-CONFIG_HOTPLUG_BLACKLIST='no' # check for blacklist bootparam
-CONFIG_HOTPLUG_MAIN='no' # start hotplug system [should be handled by udev now]
CONFIG_HWINFO='no' # run hwinfo for module-detection (requires bootparam 'hwinfo'!)
CONFIG_HWSPEAK='yes' # support for hardware synthesizer via speakup
CONFIG_KERNEL='yes' # display information on running kernel
}
# }}}
-# {{{ disable hotplug agents on request
-config_hotplug_agent(){
-if checkbootparam 'noagent' ; then
- AGENT="$(getbootparam 'noagent' 2>>$DEBUG)"
- AGENTLIST=$(echo "$AGENT" | sed 's/,/\\n/g')
- AGENTNL=$(echo "$AGENT" | sed 's/,/ /g')
- einfo "Disabling hotplug-agent(s) $AGENTNL"
- for agent in $(echo -e $AGENTLIST) ; do
- mv /etc/hotplug/${agent}.rc /etc/hotplug/${agent}.norc
- done
- [ "$?" == "0" ] ; eend $?
-fi
-}
-# }}}
-
-# {{{ blacklist of hotplug-modules
-config_hotplug_blacklist(){
-if checkbootparam 'black' ; then
- BLACK="$(getbootparam 'black' 2>>$DEBUG)"
- BLACKLIST=$(echo "$BLACK" | sed 's/,/\\n/g')
- BLACKNL=$(echo "$BLACK" | sed 's/,/ /g')
- einfo "Blacklisting $BLACKNL via /etc/hotplug/blacklist.d/hotplug-light"
- echo -e "$BLACKLIST" >> /etc/hotplug/blacklist.d/hotplug-light
- echo -e "$BLACKLIST" >> /etc/hotplug/blacklist
- eend 0
-fi
-}
-# }}}
-
-# {{{ run hotplug
-config_hotplug(){
-if checkbootparam 'nohotplug' ; then
- ewarn "Skipping running hotplug as requested on boot commandline." ; eend 0
-else
- if [ -r /etc/init.d/hotplug ] ; then
- einfo "Starting hotplug system in background."
- /etc/init.d/hotplug start >>$DEBUG 2>>$DEBUG &
- eend 0
- elif [ -r /etc/init.d/hotplug-light ] ; then
- einfo "Starting hotplug-light system in background."
- /etc/init.d/hotplug-light start >>$DEBUG 2>>$DEBUG &
- eend 0
- else
- ewarn "No hotplug system found. Should be handled by udev. Skipping execution." ; eend 0
- fi
-fi
-}
-# }}}
-
# {{{ blacklist specific module [ used in /etc/init.d/udev ]
config_blacklist(){
if checkbootparam 'blacklist' ; then
checkvalue $CONFIG_HWINFO && config_hwinfo
-checkvalue $CONFIG_HOTPLUG_AGENT && config_hotplug_agent
-
-checkvalue $CONFIG_HOTPLUG_BLACKLIST && config_hotplug_blacklist
-
-checkvalue $CONFIG_HOTPLUG_MAIN && config_hotplug
-
checkvalue $CONFIG_MODULES && config_modules
checkvalue $CONFIG_ACPI_APM && config_acpi_apm