diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2018-01-15 09:20:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 09:20:47 +0200 |
commit | 30921b21a5cefd10b7a7c1158034d43f039836df (patch) | |
tree | f7b64804252fe9352ee5c041df733c675e9bde2e /applications/luci-app-advanced-reboot/luasrc/controller | |
parent | fc94d456b1f28208f9fcf504576e278fcc091c34 (diff) | |
parent | 42da8d97bbd5bb53b4efafaad39dbb266b1a3d5a (diff) |
Merge pull request #1546 from stangri/luci-app-advanced-reboot
luci-app-advanced-reboot: support for new board names for ea8500 and nbg6817
Diffstat (limited to 'applications/luci-app-advanced-reboot/luasrc/controller')
-rw-r--r-- | applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua b/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua index 13d1c73cce..90824888e4 100644 --- a/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua +++ b/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua @@ -19,7 +19,7 @@ devices = { errorMessage = "" board_name = luci.util.trim(luci.sys.exec("cat /tmp/sysinfo/board_name")) for i=1, #devices do - if board_name and devices[i][2] == board_name then + if board_name and string.match(board_name, devices[i][2]) then device_name = devices[i][1] partition_one_mtd = devices[i][3] or nil partition_two_mtd = devices[i][4] or nil |