Enable wifi by default w/ default password
authorRISCi_ATOM <bob@bobcall.me>
Mon, 29 May 2017 07:38:46 +0000 (03:38 -0400)
committerRISCi_ATOM <bob@bobcall.me>
Mon, 29 May 2017 07:38:46 +0000 (03:38 -0400)
package/kernel/mac80211/files/lib/wifi/mac80211.sh

index 3d1299d7daaa77bf45e1aec2bedf852aeded01ff..f87723c180bcdb15fd8bddf74acf53d376f0e8db 100644 (file)
@@ -116,14 +116,15 @@ detect_mac80211() {
                        set wireless.radio${devidx}.hwmode=11${mode_band}
                        ${dev_id}
                        ${ht_capab}
-                       set wireless.radio${devidx}.disabled=1
+                       set wireless.radio${devidx}.disabled=0
 
                        set wireless.default_radio${devidx}=wifi-iface
                        set wireless.default_radio${devidx}.device=radio${devidx}
                        set wireless.default_radio${devidx}.network=lan
                        set wireless.default_radio${devidx}.mode=ap
                        set wireless.default_radio${devidx}.ssid=libreCMC
-                       set wireless.default_radio${devidx}.encryption=none
+                       set wireless.default_radio${devidx}.encryption=psk
+                       set wireless.default_radio${devidx}.key=librecmc
 EOF
                uci -q commit wireless