QoS-Update - Komplette grafische Ueberarbeitung
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / probenic.sh
CommitLineData
9607771a
MT
1#!/bin/sh
2
33634aa8 3MODULES=$(/bin/kudzu -qps -t 30 -c NETWORK | grep driver | cut -d ' ' -f 2 | sort)
9607771a 4
33634aa8 5if [ "$1" == "count" ]; then
b4e381a8
MT
6 /bin/kudzu -qps -t 30 -c NETWORK | grep driver | wc -l | awk '{ print $1 }' > /drivercount
7 exit 0
9607771a 8else
33634aa8 9 NUMBER=$1
9607771a
MT
10fi
11
33634aa8
MT
12if [ "$NUMBER" ]; then
13 echo "$(echo $MODULES | grep -n $NUMBER | cut -c 1-2 )" > /nicdriver
14else
15 echo "$MODULES" > /nicdriver
16fi
f013ab2b
MT
17
18# kudzu -qps -c NETWORK | egrep "desc|network.hwaddr|driver" | awk -F': ' '{print $2}' | sed -e '/..:..:..:..:..:../a\\' -e "s/$/\;/g"