mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-16 17:15:08 +00:00
update 21.02.2
This commit is contained in:
parent
be331c6ae7
commit
b58f225784
@ -0,0 +1,27 @@
|
||||
From 60a6cbe78dc8fa75e16e9fe9ab77b42e35b89e9e Mon Sep 17 00:00:00 2001
|
||||
From: gl-yangweiping <weiping.yang@gl-inet.com>
|
||||
Date: Wed, 31 Aug 2022 06:26:10 -0400
|
||||
Subject: [PATCH] add wan_mac lan_mac
|
||||
|
||||
---
|
||||
target/linux/ipq40xx/base-files/etc/board.d/02_network | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network
|
||||
index 7c7700bbc9..6e66350043 100755
|
||||
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network
|
||||
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network
|
||||
@@ -182,6 +182,10 @@ ipq40xx_setup_macs()
|
||||
lan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base)
|
||||
label_mac="$lan_mac"
|
||||
;;
|
||||
+ glinet,gl-a1300)
|
||||
+ wan_mac=$(mtd_get_mac_binary ART 0)
|
||||
+ lan_mac=$(macaddr_add "$wan_mac" 1)
|
||||
+ ;;
|
||||
esac
|
||||
|
||||
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
|
||||
--
|
||||
2.17.1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user