summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-07-03 15:05:40 +0200
committerKarel Kočí <karel.koci@nic.cz>2019-07-03 15:05:40 +0200
commit6cc4ad4591acdbfb3176f340be31244559d4d784 (patch)
treeeef193d68bd3d1d40940a40f75819671d5eb5904
parent5c0ea350f138ace0a37ca349ad86810750e63fbd (diff)
downloadopenwrt-personal-pkgs-6cc4ad4591acdbfb3176f340be31244559d4d784.tar.gz
openwrt-personal-pkgs-6cc4ad4591acdbfb3176f340be31244559d4d784.tar.bz2
openwrt-personal-pkgs-6cc4ad4591acdbfb3176f340be31244559d4d784.zip
updater.lua: add support for openwrt os-release
-rw-r--r--updater.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater.lua b/updater.lua
index 05880a2..f861428 100644
--- a/updater.lua
+++ b/updater.lua
@@ -1,7 +1,7 @@
local uci_cursor = uci.cursor(root_dir .. "/etc/config")
local board
-local model = model or os_release["LEDE_DEVICE_PRODUCT"]
+local model = model or os_release["OPENWRT_DEVICE_PRODUCT"] or os_release["LEDE_DEVICE_PRODUCT"]
if model:match('[Mm]ox') then
board = "mox"
elseif model:match('[Oo]mnia') then