aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/nand
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79/nand')
-rw-r--r--target/linux/ath79/nand/base-files/etc/board.d/02_network4
-rwxr-xr-xtarget/linux/ath79/nand/base-files/etc/init.d/bootcount4
2 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ath79/nand/base-files/etc/board.d/02_network b/target/linux/ath79/nand/base-files/etc/board.d/02_network
index b252d7d9e8..b163b29db1 100644
--- a/target/linux/ath79/nand/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/nand/base-files/etc/board.d/02_network
@@ -30,6 +30,10 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth0" "4:lan"
;;
+ linksys,ea4500-v3)
+ ucidef_add_switch "switch0" \
+ "6@eth1" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0"
+ ;;
netgear,pgzng1)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
diff --git a/target/linux/ath79/nand/base-files/etc/init.d/bootcount b/target/linux/ath79/nand/base-files/etc/init.d/bootcount
index 87654ba095..4d7a814f05 100755
--- a/target/linux/ath79/nand/base-files/etc/init.d/bootcount
+++ b/target/linux/ath79/nand/base-files/etc/init.d/bootcount
@@ -8,5 +8,9 @@ boot() {
glinet,gl-ar300m-nand)
fw_setenv bootcount 0
;;
+ linksys,ea4500-v3)
+ [ $(fw_printenv -n auto_recovery) = yes ] && \
+ fw_setenv auto_recovery no
+ ;;
esac
}