force down

This commit is contained in:
Bob Mottram 2016-10-21 16:02:14 +01:00
parent 1acbd6d2fa
commit b2862e5125
1 changed files with 2 additions and 2 deletions

View File

@ -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