[rdkb][mt7988][bsp][Add filogic 880 system init]
[Description]
Add filogic 880 system init
1. add THREE_GMACS_SUPPORT flag for hal-ethsw
2. init-bridge and init-MacAddr support three GMACS
[Release-log]
diff --git a/recipes-devtools/init-filogic/files/init-bridge.sh b/recipes-devtools/init-filogic/files/init-bridge.sh
index 0e63661..012e4d9 100644
--- a/recipes-devtools/init-filogic/files/init-bridge.sh
+++ b/recipes-devtools/init-filogic/files/init-bridge.sh
@@ -1,11 +1,12 @@
#!/bin/sh
-
+lan_ip=`syscfg get lan_ipaddr`
+lan_mask=`syscfg get lan_netmask`
#Setting brlan0 bridge
if [ ! -d /sys/class/net/brlan0 ]
then
brctl addbr brlan0
ip link set brlan0 address `cat /sys/class/net/eth1/address`
- ifconfig brlan0 10.0.0.1 netmask 255.255.255.0 up
+ ifconfig brlan0 $lan_ip netmask $lan_mask up
fi
#Work around for Ethernet connected clients
@@ -29,8 +30,13 @@
fi
ifconfig eth1 up
+board_name=`cat /proc/device-tree/model`
+if [[ $board_name == *"7988"* ]]; then
+ brctl addif brlan0 eth3
+ ifconfig eth3 up
+fi
#workaround: creating /opt/secure folder for ssh service
if [ ! -d /opt/secure ]; then
- mkdir /opt/secure
+ mkdir -p /opt/secure
fi
\ No newline at end of file