force down
This commit is contained in:
parent
1acbd6d2fa
commit
b2862e5125
|
@ -208,7 +208,7 @@ function hotspot_off {
|
|||
fi
|
||||
|
||||
systemctl restart network-manager
|
||||
ifdown $WIFI_INTERFACE
|
||||
ifdown --force $WIFI_INTERFACE
|
||||
}
|
||||
|
||||
function hotspot_on {
|
||||
|
@ -494,7 +494,7 @@ function disable_wifi {
|
|||
echo '# Include files from /etc/network/interfaces.d:' >> /etc/network/interfaces
|
||||
echo 'source-directory /etc/network/interfaces.d' >> /etc/network/interfaces
|
||||
systemctl restart network-manager
|
||||
ifdown ${WIFI_INTERFACE}
|
||||
ifdown --force ${WIFI_INTERFACE}
|
||||
else
|
||||
networks_from_file
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue