소스 검색

gluon-mesh-batman-adv-core: adjust rssid config to renamed WLAN interfaces

This should fix the signal strength indicators on the TP-Link CPE210/510.
Matthias Schiffer 9 년 전
부모
커밋
855f973f1f
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/350-gluon-mesh-batman-adv-core-rssid

+ 10 - 0
package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/350-gluon-mesh-batman-adv-core-rssid

@@ -0,0 +1,10 @@
+#!/usr/bin/lua
+
+local uci = require('luci.model.uci').cursor()
+
+if uci:get('system', 'rssid_wlan0') then
+  uci:set('system', 'rssid_wlan0', 'dev', 'mesh0')
+
+  uci:save('system')
+  uci:commit('system')
+end