Explorar el Código

gluon-mesh-batman-adv-core: fix rssid for setups without 11s

Matthias Schiffer hace 8 años
padre
commit
d77bfe9da9

+ 5 - 1
package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/350-gluon-mesh-batman-adv-core-rssid

@@ -3,7 +3,11 @@
 local uci = require('luci.model.uci').cursor()
 
 if uci:get('system', 'rssid_wlan0') then
-  uci:set('system', 'rssid_wlan0', 'dev', 'mesh0')
+  if uci:get('wireless', 'mesh_radio0') then
+    uci:set('system', 'rssid_wlan0', 'dev', 'mesh0')
+  else
+    uci:set('system', 'rssid_wlan0', 'dev', 'ibss0')
+  end
 
   uci:save('system')
 end