mirror of https://github.com/aredn/aredn.git
Make sure we dont lose the compat_version (#1697)
This commit is contained in:
parent
1b2b481958
commit
7811763ecc
|
@ -1,8 +0,0 @@
|
|||
#! /bin/sh
|
||||
VER=$(jsonfilter -e '@.system.compat_version' < /etc/board.json)
|
||||
if [ "${VER}" != "" ]; then
|
||||
uci -c /etc/config.mesh -q set setup.globals.compat_version=${VER}
|
||||
uci -c /etc/config.mesh commit setup
|
||||
uci -q set system.@system[0].compat_version=${VER}
|
||||
uci -q commit system
|
||||
fi
|
|
@ -175,6 +175,12 @@ if wifi_enable == 0 then
|
|||
cfg.wifi_enable = wifi_enable
|
||||
end
|
||||
|
||||
-- Make sure compat version is correct
|
||||
local system = aredn.hardware.get_board().system
|
||||
if system and system.compat_version then
|
||||
cfg.compat_version = system.compat_version
|
||||
end
|
||||
|
||||
-- Radio
|
||||
if aredn.hardware.get_radio_count() > 0 and cfg.wifi_intf == "" then
|
||||
local wifi_intf = "wlan0"
|
||||
|
|
Loading…
Reference in New Issue