|
@@ -208,7 +208,7 @@ function hotspot_off {
|
208
|
208
|
fi
|
209
|
209
|
|
210
|
210
|
systemctl restart network-manager
|
211
|
|
- ifdown $WIFI_INTERFACE
|
|
211
|
+ ifdown --force $WIFI_INTERFACE
|
212
|
212
|
}
|
213
|
213
|
|
214
|
214
|
function hotspot_on {
|
|
@@ -494,7 +494,7 @@ function disable_wifi {
|
494
|
494
|
echo '# Include files from /etc/network/interfaces.d:' >> /etc/network/interfaces
|
495
|
495
|
echo 'source-directory /etc/network/interfaces.d' >> /etc/network/interfaces
|
496
|
496
|
systemctl restart network-manager
|
497
|
|
- ifdown ${WIFI_INTERFACE}
|
|
497
|
+ ifdown --force ${WIFI_INTERFACE}
|
498
|
498
|
else
|
499
|
499
|
networks_from_file
|
500
|
500
|
fi
|