Update EA7300, v1 and v2, for new json based approach 4502/head
authorRussell Morris <rmorris@rkmorris.us>
Thu, 8 Oct 2020 00:46:15 +0000 (19:46 -0500)
committerRussell Morris <rmorris@rkmorris.us>
Thu, 8 Oct 2020 00:48:31 +0000 (19:48 -0500)
Signed-off-by: Russell Morris <rmorris@rkmorris.us>
applications/luci-app-advanced-reboot/luasrc/advanced-reboot/devices/linksys-ea7300.lua [deleted file]
applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v1.json [new file with mode: 0644]
applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/devices/linksys-ea7300v2.json [new file with mode: 0644]

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 (file)
index 6de9641..0000000
+++ /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 (file)
index 0000000..22f1a8c
--- /dev/null
@@ -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 (file)
index 0000000..9f46375
--- /dev/null
@@ -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"
+}
+