[OpenWrt-Devel] [PATCH] [19.07] ramips: rename DIR-860L entries according to the new manufacturer / device spec
Stijn Segers
foss at volatilesystems.org
Wed Dec 25 09:38:51 EST 2019
Most images follow the openwrt-target-subtarget-manufacturer-device
naming specification, but the D-Link DIR-860L rev B1 does not. This
patch brings it in line.
Master had this updated a while ago, it's okay there.
Signed-off-by: Stijn Segers <foss at volatilesystems.org>
---
target/linux/ramips/base-files/etc/board.d/01_leds | 2 +-
target/linux/ramips/base-files/etc/board.d/02_network | 4 ++--
.../linux/ramips/base-files/etc/uci-defaults/09_fix-checksum | 2 +-
target/linux/ramips/image/mt7621.mk | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index e5706dd5ef..31f7220eee 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -160,7 +160,7 @@ dlink,dwr-922-e2)
ucidef_set_led_netdev "signalstrength" "signalstrength" "$boardname:green:sigstrength" "wwan0" "link"
ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" "tx rx"
;;
-dir-860l-b1)
+dlink,dir-860l-b1)
ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
;;
dlink,dir-878-a1)
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 465ee33434..c46b26e790 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -272,7 +272,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6 at eth0"
;;
- dir-860l-b1|\
+ dlink,dir-860l-b1|\
elecom,wrc-1167ghbk2-s|\
elecom,wrc-2533gst|\
elecom,wrc-1900gst|\
@@ -555,7 +555,7 @@ ramips_setup_macs()
dch-m225)
lan_mac=$(mtd_get_mac_ascii factory lanmac)
;;
- dir-860l-b1)
+ dlink,dir-860l-b1)
lan_mac=$(mtd_get_mac_ascii factory lanmac)
wan_mac=$(mtd_get_mac_ascii factory wanmac)
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum
index 54deb5b2e0..40746c6af4 100644
--- a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum
+++ b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum
@@ -17,7 +17,7 @@ case "$board" in
cy-swr1100 | \
dch-m225 | \
dir-645 | \
-dir-860l-b1)
+dlink,dir-860l-b1)
fix_checksum seama
;;
dlink,dap-1522-a1)
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 2af4b21622..53d00d31bd 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -115,7 +115,7 @@ define Device/asus_rt-ac57u
endef
TARGET_DEVICES += asus_rt-ac57u
-define Device/dir-860l-b1
+define Device/dlink_dir-860l-b1
$(Device/seama)
DTS := DIR-860L-B1
BLOCKSIZE := 64k
@@ -125,7 +125,7 @@ define Device/dir-860l-b1
DEVICE_TITLE := D-Link DIR-860L B1
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
endef
-TARGET_DEVICES += dir-860l-b1
+TARGET_DEVICES += dlink_dir-860l-b1
define Device/dlink_dir-878-a1
DTS := DIR-878-A1
--
2.20.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list