X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-advanced-reboot%2Fluasrc%2Fcontroller%2Fadvanced_reboot.lua;h=90824888e4f68e2b210d9c797509541394b2f5b0;hp=13d1c73cce33cdd3b71cb6239d7447537297574b;hb=42da8d97bbd5bb53b4efafaad39dbb266b1a3d5a;hpb=ad99623b5353618338ccb2c0930f27dbfdae8a69 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 13d1c73cc..90824888e 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