]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/install+setup/install/probehw.sh
3 echo "Detecting Hardware..."
4 for MODULE
in $
(kudzu
-qps -t 30 |
grep driver
: | cut
-d ' ' -f 2 |
sort |
uniq); do
5 if [ "${MODULE}" = "unknown" ] || \
6 [ "${MODULE}" = "ignore" ]; then
9 MODULE
=$
(basename $
(find /lib
/modules
-name $
(echo $MODULE |
sed -e 's/[_-]/*/g')* ) | cut
-d.
-f1 |
head -1)
11 if grep -Eqe "^${MODULE} " /proc
/modules
; then
14 echo -n "Loading ${MODULE}"
15 modprobe
${MODULE} >/dev
/null
2>&1
25 ## If the autodetection fails we will try to load every module...
26 ## Do this only when we want...
28 for i
in a b c d e f g
; do
29 if [ ! -e /dev
/sd
$i ]; then
31 echo "Checking for: $DEVICE"
36 for MODULE
in $
(ls /lib
/modules
/*/kernel
/drivers
/scsi
); do
37 MODULE
=`basename $MODULE | awk -F. '{ print $1 }'`
39 echo -n "Probing for $MODULE"
40 modprobe
$MODULE >/dev
/null
2>&1
42 echo " --> ecode: $RETVAL"
43 if [ "$RETVAL" -eq "0" ]; then
45 if [ -e "$DEVICE" ]; then