ca033993fd5bca362d535addb8b28d308465b597
[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 echo $(echo $MODULES | wc -l)
7 else
8 NUMBER=$1
9 fi
10
11 if [ "$NUMBER" ]; then
12 echo "$(echo $MODULES | grep -n $NUMBER | cut -c 1-2 )" > /nicdriver
13 else
14 echo "$MODULES" > /nicdriver
15 fi