diff options
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 4 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 3 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index 96665bdf7f..d2dc00f8bc 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -39,6 +39,10 @@ preinit_set_mac_address() { mac=$(macaddr_setbit_la "$mac") ifconfig eth0 hw ether $mac 2>/dev/null ;; + br-6475nd) + mac=$(mtd_get_mac_binary devdata 13) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; asl26555 |\ dir-300-b1 |\ dir-300-b2 |\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 24aad1f174..7aa331334e 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -109,6 +109,9 @@ ramips_board_detect() { *"ESR-9753") name="esr-9753" ;; + *"Edimax BR-6475nD") + name="br-6475nd" + ;; *"F7C027") name="f7c027" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 0230a1829b..8bc2abd156 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -100,6 +100,13 @@ platform_check_image() { } return 0 ;; + br-6475nd) + [ "$magic" != "43535953" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; esac echo "Sysupgrade is not yet supported on $board." |