From 7528b6e3d52cb24da279f122db1274326130a6e1 Mon Sep 17 00:00:00 2001 From: Russell Morris Date: Wed, 7 Oct 2020 19:46:15 -0500 Subject: [PATCH] Update EA7300, v1 and v2, for new json based approach Signed-off-by: Russell Morris --- .../advanced-reboot/devices/linksys-ea7300.lua | 14 -------------- .../advanced-reboot/devices/linksys-ea7300v1.json | 15 +++++++++++++++ .../advanced-reboot/devices/linksys-ea7300v2.json | 15 +++++++++++++++ 3 files changed, 30 insertions(+), 14 deletions(-) delete mode 100644 applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea7300.lua create mode 100644 applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v1.json create mode 100644 applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v2.json diff --git a/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea7300.lua b/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea7300.lua deleted file mode 100644 index 6de9641a6a..0000000000 --- a/applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea7300.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - vendorName = "Linksys", - deviceName = "EA7300v2", - boardNames = { "linksys,ea7300-v2" }, - partition1MTD = "mtd5", - partition2MTD = "mtd7", - labelOffset = 32, - bootEnv1 = "boot_part", - bootEnv1Partition1Value = 1, - bootEnv1Partition2Value = 2, - bootEnv2 = nil, - bootEnv2Partition1Value = nil, - bootEnv2Partition2Value = nil -} diff --git a/applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v1.json b/applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v1.json new file mode 100644 index 0000000000..22f1a8c01a --- /dev/null +++ b/applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v1.json @@ -0,0 +1,15 @@ +{ + "vendorName": "Linksys", + "deviceName": "EA7300v1", + "boardNames": [ "linksys,ea7300-v1" ], + "partition1MTD": "mtd5", + "partition2MTD": "mtd7", + "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/root/usr/share/advanced-reboot/devices/linksys-ea7300v2.json b/applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v2.json new file mode 100644 index 0000000000..9f463758c8 --- /dev/null +++ b/applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v2.json @@ -0,0 +1,15 @@ +{ + "vendorName": "Linksys", + "deviceName": "EA7300v2", + "boardNames": [ "linksys,ea7300-v2" ], + "partition1MTD": "mtd5", + "partition2MTD": "mtd7", + "labelOffset": 32, + "bootEnv1": "boot_part", + "bootEnv1Partition1Value": 1, + "bootEnv1Partition2Value": 2, + "bootEnv2": "bootcmd", + "bootEnv2Partition1Value": "run nandboot", + "bootEnv2Partition2Value": "run altnandboot" +} + -- 2.30.2