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

This commit is contained in:
Matthias Schiffer 2016-04-27 21:07:46 +02:00
parent 9b63127aa5
commit d77bfe9da9
1 changed files with 5 additions and 1 deletions

View File

@ -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