Skip to content
Snippets Groups Projects
Commit 0789dc35 authored by Bob Mottram's avatar Bob Mottram
Browse files

wifi up commands

parent 04b7671b
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment