aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network28
-rwxr-xr-xtarget/linux/ramips/base-files/etc/init.d/bootcount1
2 files changed, 16 insertions, 13 deletions
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 f91a8248e5..0ffd5d6560 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -171,6 +171,14 @@ ramips_setup_interfaces()
wrh-300cr)
ucidef_set_interface_lan "eth0"
;;
+ alfa-network,quad-e4g|\
+ netgear,r6120|\
+ r6220|\
+ netgear,r6350|\
+ wndr3700v5)
+ ucidef_add_switch "switch0" \
+ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
+ ;;
alfa-network,r36m-e4g|\
wcr-1166ds)
ucidef_add_switch "switch0" \
@@ -356,13 +364,6 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0"
ucidef_set_interface_wan "usb0"
;;
- netgear,r6120|\
- r6220|\
- netgear,r6350|\
- wndr3700v5)
- ucidef_add_switch "switch0" \
- "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
- ;;
hc5761)
ucidef_add_switch "switch0" \
"1:lan" "4:lan" "0:wan" "6@eth0"
@@ -501,6 +502,13 @@ ramips_setup_macs()
lan_mac=$(mtd_get_mac_binary factory 57344)
wan_mac=$(mtd_get_mac_binary factory 57350)
;;
+ alfa-network,quad-e4g|\
+ elecom,wrc-1167ghbk2-s|\
+ elecom,wrc-2533gst|\
+ elecom,wrc-1900gst|\
+ sk-wb8)
+ wan_mac=$(mtd_get_mac_binary factory 57350)
+ ;;
alfa-network,r36m-e4g|\
carambola|\
freestation5|\
@@ -564,12 +572,6 @@ ramips_setup_macs()
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 2)
;;
- elecom,wrc-1167ghbk2-s|\
- elecom,wrc-2533gst|\
- elecom,wrc-1900gst|\
- sk-wb8)
- wan_mac=$(mtd_get_mac_binary factory 57350)
- ;;
gl-mt300n-v2|\
whr-g300n)
wan_mac=$(mtd_get_mac_binary factory 4)
diff --git a/target/linux/ramips/base-files/etc/init.d/bootcount b/target/linux/ramips/base-files/etc/init.d/bootcount
index 251d8ddf65..dd7cf1aed9 100755
--- a/target/linux/ramips/base-files/etc/init.d/bootcount
+++ b/target/linux/ramips/base-files/etc/init.d/bootcount
@@ -8,6 +8,7 @@ start() {
case $(board_name) in
alfa-network,ac1200rm|\
alfa-network,awusfree1|\
+ alfa-network,quad-e4g|\
alfa-network,r36m-e4g|\
alfa-network,tube-e4g)
[ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\