Developing lightweight computation at the DSG edge

Commit 67cf3e2a authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Fix wireless default values configuration

parent 9782cff5
......@@ -67,6 +67,7 @@ prepare_wifi() {
log --------------------------------------------------
log $(iwinfo)
log --------------------------------------------------
wifi down
}
configure() {
......
......@@ -550,11 +550,12 @@ qmp_reset_wifi() {
#Generating default wifi configuration
country="$(uci get qmp.wireless.country 2>/dev/null)"
country="${country:-US}"
mv /etc/config/wireless /tmp/wireless.old
wifi detect | sed s/"disabled 1"/"country $country"/g > /etc/config/wireless
wifi
wifi
sleep 5
}
qmp_configure_wifi_initial() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment