shutting down the interface before reconfiguring it ensures that previously
started dhclients and other programs exit and do not interfere with the new
configuration.
DEVICE=${NETDEVICES[$DV]}
device2props
DV=$DEVICENAME
DEVICE=${NETDEVICES[$DV]}
device2props
DV=$DEVICENAME
# wireless config
WLDEVICE="$(LANG=C LC_MESSAGEWS=C iwconfig $DV 2>/dev/null | awk '/802\.11|READY|ESSID/{print $1}')"
WLDEVICECOUNT="$(LANG=C LC_MESSAGEWS=C iwconfig $DV 2>/dev/null | wc -l)"
# wireless config
WLDEVICE="$(LANG=C LC_MESSAGEWS=C iwconfig $DV 2>/dev/null | awk '/802\.11|READY|ESSID/{print $1}')"
WLDEVICECOUNT="$(LANG=C LC_MESSAGEWS=C iwconfig $DV 2>/dev/null | wc -l)"
IFACEDONE=""
while [ -n "$DV" -a -z "$IFACEDONE" ]; do
configiface
IFACEDONE=""
while [ -n "$DV" -a -z "$IFACEDONE" ]; do
configiface
if ! ifup $DV; then
$DIALOG --yesno "$MESSAGE14" 15 50 || IFACEDONE="DONE"
else
if ! ifup $DV; then
$DIALOG --yesno "$MESSAGE14" 15 50 || IFACEDONE="DONE"
else