wifi up commands

This commit is contained in:
Bob Mottram 2017-06-19 18:34:50 +01:00
parent 04b7671b91
commit 0789dc350b
1 changed files with 10 additions and 5 deletions

View File

@ -111,7 +111,8 @@ function setup_wifi_atheros {
if [ $IFACE ]; then
wpa_action ${IFACE} stop
wpa_cli -i ${IFACE} terminate
ifconfig $IFACE up
#ifconfig $IFACE up
ifup $IFACE
fi
}
@ -316,7 +317,8 @@ function hotspot_on {
echo " bridge_ports $WIFI_INTERFACE eth0" >> /etc/network/interfaces
systemctl restart network-manager
ifconfig $WIFI_INTERFACE up
#ifconfig $WIFI_INTERFACE up
ifup $WIFI_INTERFACE
systemctl restart hostapd
}
@ -357,7 +359,8 @@ function wifi_wpa2_psk {
wpa_passphrase "$ssid" "$passphrase" > $WIFI_CONFIG
systemctl restart network-manager
ifconfig ${WIFI_INTERFACE} up
#ifconfig ${WIFI_INTERFACE} up
ifup $WIFI_INTERFACE
}
function wifi_none {
@ -391,7 +394,8 @@ function wifi_none {
echo '}' >> $WIFI_CONFIG
systemctl restart network-manager
ifconfig ${WIFI_INTERFACE} up
#ifconfig ${WIFI_INTERFACE} up
ifup $WIFI_INTERFACE
}
function networks_from_file {
@ -465,7 +469,8 @@ function networks_from_file {
resolvconf=/var/run/NetworkManager/resolv.conf
chattr -i $resolvconf
systemctl restart network-manager
ifconfig ${WIFI_INTERFACE} up
#ifconfig ${WIFI_INTERFACE} up
ifup $WIFI_INTERFACE
}
function wifi_networks_file_header {