소스 검색

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

Matthias Schiffer 8 년 전
부모
커밋
d77bfe9da9
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/350-gluon-mesh-batman-adv-core-rssid

+ 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