$DEVICE is used many places.

This commit is contained in:
solomon 2002-10-31 22:32:59 +00:00
parent 1dd8671857
commit 8e49963776

View file

@ -17,17 +17,17 @@ fi
# find the most recently-added wlan device.
(cd /proc/net/p80211
for DEVICE in * ; do
bus=`grep bus $DEVICE | -cut -c14-`
for DEV in * ; do
bus=`grep bus $DEV | -cut -c14-`
if [ $TYPE = usb ] ; then
maybe=`echo $DEVICE | cut cut -c15- | tr / :`
# /proc/bus/usb/XXX/YYY --> XXX:YYY
if [ $maybe = $bus ] ; then
# we found our $DEVICE
# we found our $DEV
break
elif [ $TYPE = pci ] ; then
if [ $PCI_SLOT_NAME = $bus ] ; then
# We found our $DEVICE.
# We found our $DEV.
break
fi
else
@ -38,6 +38,8 @@ done
)
DEVICE=$DEV
#=======ENABLE========================================
# Do we want to init the card at all?
eval 'WLAN_ENABLE=$ENABLE_'$DEVICE