#!/bin/sh echo "Probing for Network Cards" rm -f /tmp/nic for card in 3c59x acenic de4x5 dgrs eepro100 epic100 hp100 lance \ ne2k-pci olympic pcnet32 rcpci rtl8139 8139too 8139cp sktr tulip via-rhine \ yellowfin natsemi ; do /sbin/modprobe $card 2> /dev/null if [ $? = 0 ]; then echo "A networking card using the $card.o module has been detected." > /tmp/nic echo "$card" > /cardfound break; fi done if [ ! -r /cardfound ]; then # Don't probe for com20020, because it doesn't check and will always load. # Don't probe for arlan, because it needs irq= to work. # Don't probe for com90io or com90xx because they taint the kernel. for card in depca ibmtr 3c501 3c503 3c505 3c507 3c509 3c515 ac3200 \ acenic at1700 cosa cs89x0 de4x5 de600 \ de620 e2100 eepro eexpress es3210 eth16i ewrk3 fmv18x hostess_sv11 \ hp-plus hp lne390 ne3210 ni5010 ni52 ni65 sb1000 sealevel smc-ultra \ smc-ultra32 smc9194 wd ; do /sbin/modprobe $card 2> /dev/null if [ $? = 0 ]; then echo "A networking card using the $card.o module has been detected." > /tmp/nic # echo "$card" > /cardfound break fi done fi # if [ ! -r /cardfound ]; then # echo "NO CARD DETECTED -- Don't be concerned on a laptop" > /tmp/nic # fi rm -f /cardfound