force down
This commit is contained in:
parent
b2862e5125
commit
4db154ff80
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue