force down

This commit is contained in:
Bob Mottram 2016-10-21 16:05:39 +01:00
parent b2862e5125
commit 4db154ff80
2 changed files with 6 additions and 6 deletions

View File

@ -70,8 +70,8 @@ function setup_wifi_atheros {
cd $curr_dir
update_wifi_adaptors
if [ $IFACE ]; then
ifconfig $IFACE down
ifconfig $IFACE up
ifdown --force $IFACE
ifup $IFACE
fi
}

View File

@ -85,8 +85,8 @@ do
WIFI_INTERFACE=${1}
wifi_interface_specified=1
write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
ifconfig $WIFI_INTERFACE down
ifconfig $WIFI_INTERFACE up
ifdown --force $WIFI_INTERFACE
ifup $WIFI_INTERFACE
;;
-t|--type)
shift
@ -143,8 +143,8 @@ if [ ! $wifi_interface_specified ]; then
WIFI_INTERFACE=$IFACE
echo "Adaptor: $WIFI_INTERFACE"
write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
ifconfig $WIFI_INTERFACE down
ifconfig $WIFI_INTERFACE up
ifdown --force $WIFI_INTERFACE
ifup $WIFI_INTERFACE
fi
if [ $WIFI_DISABLE ]; then