diff options
author | Karel Kočí <karel.koci@nic.cz> | 2019-07-03 15:05:40 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2019-07-03 15:05:40 +0200 |
commit | 6cc4ad4591acdbfb3176f340be31244559d4d784 (patch) | |
tree | eef193d68bd3d1d40940a40f75819671d5eb5904 | |
parent | 5c0ea350f138ace0a37ca349ad86810750e63fbd (diff) | |
download | openwrt-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.lua | 2 |
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 |