removed modcalc_speed.py
[grml-terminalserver.git] / discover-nic
1 #!/static/ash
2
3 PATH=/static
4
5 kernel_version_=`uname -r`
6
7 modules_to_load_=$(/static/discover --disable-bus all --enable-bus pci --type network --normalize-whitespace --data-path=linux/module/name --data-version=$kernel_version_)
8
9 if [ $? -ne 0 ]; then
10   echo "Error: discover returned an error while discovering the appropriate nic module"
11   echo "$modules_to_load_"
12   return 1
13 fi
14
15 echo $modules_to_load_ | grep -v '^ $' | uniq
16 return 0