Developing lightweight computation at the DSG edge

Commit 7e81697e authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Change deprecated "wifi detect" for "wifi config"

parent 67e977b7
......@@ -552,7 +552,8 @@ qmp_reset_wifi() {
country="${country:-US}"
mv /etc/config/wireless /tmp/wireless.old
wifi detect | sed s/"disabled 1"/"country $country"/g > /etc/config/wireless
wifi config
sed -i s/"disabled '1'"/"country $country"/g /etc/config/wireless
wifi
sleep 5
......
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