Update wifi config
This commit is contained in:
parent
8d5d3ba292
commit
5dd5f73218
|
@ -369,6 +369,9 @@ function networks_from_file {
|
||||||
rm -f $WIFI_CONFIG
|
rm -f $WIFI_CONFIG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo 'update_config=1' > $WIFI_CONFIG
|
||||||
|
echo '' >> $WIFI_CONFIG
|
||||||
|
|
||||||
ctr=0
|
ctr=0
|
||||||
while read -r line
|
while read -r line
|
||||||
do
|
do
|
||||||
|
|
|
@ -153,7 +153,6 @@ fi
|
||||||
|
|
||||||
if [ -f ${WIFI_NETWORKS_FILE} ]; then
|
if [ -f ${WIFI_NETWORKS_FILE} ]; then
|
||||||
networks_from_file
|
networks_from_file
|
||||||
ifconfig ${WIFI_INTERFACE} up
|
|
||||||
wpa_cli status
|
wpa_cli status
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue