From 42da8d97bbd5bb53b4efafaad39dbb266b1a3d5a Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sun, 14 Jan 2018 15:24:19 -0800 Subject: luci-app-advanced-reboot: added support for new board names for ea8500 and nbg6817 Signed-off-by: Stan Grishin --- .../luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua') 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 -- cgit v1.2.3