projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
realtek: add support for TP-Link SG2008P
[openwrt/openwrt.git]
/
target
/
linux
/
realtek
/
base-files
/
etc
/
board.d
/
02_network
diff --git
a/target/linux/realtek/base-files/etc/board.d/02_network
b/target/linux/realtek/base-files/etc/board.d/02_network
index 87d772cf84029ba80b6855c49beb445d33817535..d797960faffd7ccaa63d6d199d5ed58f977a90a2 100644
(file)
--- a/
target/linux/realtek/base-files/etc/board.d/02_network
+++ b/
target/linux/realtek/base-files/etc/board.d/02_network
@@
-39,6
+39,10
@@
hpe,1920-24g)
lan_mac_start=$(macaddr_add $lan_mac 2)
lan_mac_end=$(macaddr_add $lan_mac $((mac_count2-mac_count1)))
;;
lan_mac_start=$(macaddr_add $lan_mac 2)
lan_mac_end=$(macaddr_add $lan_mac $((mac_count2-mac_count1)))
;;
+tplink,sg2008p-v1)
+ label_mac=$(mtd_get_mac_binary para 0xfdff4)
+ lan_mac="$label_mac"
+ ;;
*)
lan_mac=$(mtd_get_mac_ascii u-boot-env2 mac_start)
lan_mac_end=$(mtd_get_mac_ascii u-boot-env2 mac_end)
*)
lan_mac=$(mtd_get_mac_ascii u-boot-env2 mac_start)
lan_mac_end=$(mtd_get_mac_ascii u-boot-env2 mac_end)