|
@@ -85,8 +85,8 @@ do
|
85
|
85
|
WIFI_INTERFACE=${1}
|
86
|
86
|
wifi_interface_specified=1
|
87
|
87
|
write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
|
88
|
|
- ifconfig $WIFI_INTERFACE down
|
89
|
|
- ifconfig $WIFI_INTERFACE up
|
|
88
|
+ ifdown --force $WIFI_INTERFACE
|
|
89
|
+ ifup $WIFI_INTERFACE
|
90
|
90
|
;;
|
91
|
91
|
-t|--type)
|
92
|
92
|
shift
|
|
@@ -143,8 +143,8 @@ if [ ! $wifi_interface_specified ]; then
|
143
|
143
|
WIFI_INTERFACE=$IFACE
|
144
|
144
|
echo "Adaptor: $WIFI_INTERFACE"
|
145
|
145
|
write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
|
146
|
|
- ifconfig $WIFI_INTERFACE down
|
147
|
|
- ifconfig $WIFI_INTERFACE up
|
|
146
|
+ ifdown --force $WIFI_INTERFACE
|
|
147
|
+ ifup $WIFI_INTERFACE
|
148
|
148
|
fi
|
149
|
149
|
|
150
|
150
|
if [ $WIFI_DISABLE ]; then
|