Drop deprecated config_discover().
authorMichael Prokop <mika@grml.org>
Wed, 6 Jul 2011 22:24:21 +0000 (00:24 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 6 Jul 2011 22:40:52 +0000 (00:40 +0200)
udev is known to work quite reliable and detects all relevant
hardware drivers, let's get rid of old and unused discover.

autoconfig
autoconfig.functions
grml-autoconfig

index 807d16b..5e76359 100644 (file)
@@ -60,7 +60,6 @@ CONFIG_DEBOOTSTRAP='yes'      # support automatic installation of Debian via grm
 CONFIG_DEBNET='yes'           # search for /etc/network/interfaces on partitions and set up network afterwards
 CONFIG_DEBS='yes'             # check for bootoption debs for installing .debs
 CONFIG_DEBUG='yes'            # activate start of shells during startup at several stages
-CONFIG_DISCOVER='no'          # use discover for hardware detection
 CONFIG_DISTCC='yes'           # activate and setup distcc through bootparam distcc=$NETWORK,$INTERFACE
 CONFIG_DISTRI='yes'           # support some customization via bootoption distri
 CONFIG_DMA='yes'              # Enable DMA for all IDE drives
index e813921..ab7062d 100755 (executable)
@@ -689,25 +689,6 @@ fi
 }
 # }}}
 
-# {{{ hardware detection via discover
-config_discover(){
-if checkbootparam 'nodisc' ; then
-  ewarn "Skipping hardware detection via discover as requested on boot commandline." ; eend 0
-else
- if [ -x /sbin/discover ] ; then
-  einfo "Discovering hardware. Trying to load the following modules in background:"
-   eindent
-   einfo "$(discover --data-path=linux/module/name --data-path=linux/modules/options --format="%s %s" --data-version=`uname -r` --enable-bus all | sort -u | xargs echo)"
-   eoutdent
-  /sbin/discover-modprobe -v >>$DEBUG 2>&1 &
-  eend 0
- else
-  eerror "Application discover not available. Information: udev should handle hardware recognition." ; eend 0
- fi
-fi
-}
-# }}}
-
 # {{{ hardware detection via hwinfo
 config_hwinfo(){
 if checkbootparam 'hwinfo' >>$DEBUG 2>&1; then
index 0fb2806..f67457f 100755 (executable)
@@ -144,8 +144,6 @@ checkvalue $CONFIG_TESTCD && config_testcd
 
 [ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||">/dev/tty14
 
-checkvalue $CONFIG_DISCOVER && config_discover
-
 checkvalue $CONFIG_HWINFO && config_hwinfo
 
 checkvalue $CONFIG_HOTPLUG_AGENT && config_hotplug_agent