diff options
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 | ||||
-rw-r--r-- | target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx | 6 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 92ee516235..5c3b1a7e1b 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -811,6 +811,9 @@ ar71xx_board_detect() { *"R6100") name="r6100" ;; + *"Rambutan"*) + name="rambutan" + ;; *"RE450") name="re450" ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx index 50f59defe1..277287d383 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx @@ -44,6 +44,12 @@ preinit_set_mac_address() { mac_wan=$(mtd_get_mac_binary caldata 6) [ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan" ;; + rambutan) + mac_lan=$(mtd_get_mac_binary art 0) + [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan" + mac_wan=$(mtd_get_mac_binary art 6) + [ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan" + ;; tew-632brp) fetch_mac_from_mtd config lan_mac wan_mac ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 5be678ea36..8ebdea3018 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -521,6 +521,7 @@ platform_check_image() { c-60|\ nbg6716|\ r6100|\ + rambutan|\ wndr3700v4|\ wndr4300) nand_do_platform_check $board $1 @@ -663,6 +664,7 @@ platform_pre_upgrade() { c-60|\ nbg6716|\ r6100|\ + rambutan|\ rb-411|\ rb-411u|\ rb-433|\ |