5008def61777c13f01e6b0f9d21106ec5bcfff4f
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / probenic.sh
1 #!/bin/sh
2
3 MODULES=$(/bin/kudzu -qps -t 30 -c NETWORK | grep driver | cut -d ' ' -f 2 | sort)
4
5 if [ "$1" == "count" ]; then
6 /bin/kudzu -qps -t 30 -c NETWORK | grep driver | wc -l | awk '{ print $1 }' > /drivercount
7 exit 0
8 else
9 NUMBER=$1
10 fi
11
12 if [ "$NUMBER" ]; then
13 echo "$(echo $MODULES | grep -n $NUMBER | cut -c 1-2 )" > /nicdriver
14 else
15 echo "$MODULES" > /nicdriver
16 fi