From: Stan Grishin Date: Mon, 24 Aug 2020 02:14:14 +0000 (+0000) Subject: luci-app-advanced-reboot: bugifx: btn style; board names for some Linksys devices X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=be7840942288f87bdb1ef78c86ab00011b67d6bf;p=project%2Fluci.git luci-app-advanced-reboot: bugifx: btn style; board names for some Linksys devices Signed-off-by: Stan Grishin --- diff --git a/applications/luci-app-advanced-reboot/Makefile b/applications/luci-app-advanced-reboot/Makefile index 79197c43ba..7be53efcb9 100644 --- a/applications/luci-app-advanced-reboot/Makefile +++ b/applications/luci-app-advanced-reboot/Makefile @@ -12,7 +12,7 @@ LUCI_DESCRIPTION:=Provides Web UI (found under System/Advanced Reboot) to reboot routers are listed at https://github.com/openwrt/luci/blob/master/applications/luci-app-advanced-reboot/README.md LUCI_DEPENDS:=+luci-compat +luci-mod-admin-full LUCI_PKGARCH:=all -PKG_RELEASE:=54 +PKG_RELEASE:=55 include ../../luci.mk diff --git a/applications/luci-app-advanced-reboot/README.md b/applications/luci-app-advanced-reboot/README.md index 85c10fcc12..35b2d32d7b 100644 --- a/applications/luci-app-advanced-reboot/README.md +++ b/applications/luci-app-advanced-reboot/README.md @@ -1,5 +1,7 @@ # Advanced Reboot Web UI (luci-app-advanced-reboot) +[![HitCount](http://hits.dwyl.com/stangri/openwrt/luci-app-advanced-reboot.svg)](http://hits.dwyl.com/stangri/openwrt/luci-app-advanced-reboot) + ## Description This package allows you to reboot to an alternative partition on the supported (dual-partition) routers and to power off (power down) your OpenWrt device. diff --git a/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-e4200v2.lua b/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-e4200v2.lua new file mode 100644 index 0000000000..50c4970ed9 --- /dev/null +++ b/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-e4200v2.lua @@ -0,0 +1,14 @@ +return { + vendorName = "Linksys", + deviceName = "E4200v2", + boardNames = { "linksys-e4200v2", "linksys,e4200v2" }, + partition1MTD = "mtd3", + partition2MTD = "mtd5", + labelOffset = 32, + bootEnv1 = "boot_part", + bootEnv1Partition1Value = 1, + bootEnv1Partition2Value = 2, + bootEnv2 = "bootcmd", + bootEnv2Partition1Value = "run nandboot", + bootEnv2Partition2Value = "run altnandboot" +} diff --git a/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea3500.lua b/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea3500.lua index 553788fd57..2b72cd4b7d 100644 --- a/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea3500.lua +++ b/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea3500.lua @@ -1,7 +1,7 @@ return { vendorName = "Linksys", deviceName = "EA3500", - boardNames = { "linksys-audi", "linksys,audi" }, + boardNames = { "linksys-audi", "linksys,audi", "linksys-ea3500", "linksys,ea3500" }, partition1MTD = "mtd3", partition2MTD = "mtd5", labelOffset = 32, diff --git a/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea4500.lua b/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea4500.lua new file mode 100644 index 0000000000..10f53d1d78 --- /dev/null +++ b/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea4500.lua @@ -0,0 +1,14 @@ +return { + vendorName = "Linksys", + deviceName = "EA4500", + boardNames = { "linksys-e4500", "linksys,e4500" }, + partition1MTD = "mtd3", + partition2MTD = "mtd5", + labelOffset = 32, + bootEnv1 = "boot_part", + bootEnv1Partition1Value = 1, + bootEnv1Partition2Value = 2, + bootEnv2 = "bootcmd", + bootEnv2Partition1Value = "run nandboot", + bootEnv2Partition2Value = "run altnandboot" +} diff --git a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm index 49985b32ce..a28418cc5f 100644 --- a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm +++ b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm @@ -42,12 +42,12 @@ <%- if bev1p1 == current_partition then -%>
- +
<%- else -%>
- +
<%- end -%> @@ -66,12 +66,12 @@ <%- if bev1p2 == current_partition then -%>
- +
<%- else -%>
- +
<%- end -%> @@ -91,7 +91,7 @@ <%- if nixio.fs.access("/sbin/poweroff") then -%>
- +
<%- else -%>

<%:Warning: This system does not support powering off!%>

diff --git a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm index db11020628..b81aaf4558 100644 --- a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm +++ b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm @@ -21,8 +21,8 @@
- - + +
diff --git a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm index 1acf01b995..56200a4c1c 100644 --- a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm +++ b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm @@ -17,8 +17,8 @@
- - + +