diff options
Diffstat (limited to 'target/linux/ramips/base-files')
7 files changed, 18 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 95e504f1da..68aa0ee863 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -30,6 +30,9 @@ status_led_off() { get_status_led() { case $(ramips_board_name) in + 3g-6200n) + status_led="edimax:green:power" + ;; argus-atp52b) status_led="argus-atp52b:green:run" ;; diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index c5d0d6978b..d7542cab4d 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -48,6 +48,7 @@ case "$FIRMWARE" in rt2x00_eeprom_extract "u-boot" 262144 272 ;; + 3g-6200n | \ all0256n | \ argus-atp52b | \ bc2 | \ diff --git a/target/linux/ramips/base-files/etc/uci-defaults/leds b/target/linux/ramips/base-files/etc/uci-defaults/leds index fdfce39e8a..fbbd09d9eb 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/leds @@ -14,6 +14,10 @@ set_wifi_led() { board=$(ramips_board_name) case $board in + 3g-6200n) + set_wifi_led "edimax:amber:wlan" + set_usb_led "edimax:blue:3g" + ;; all0256n) set_wifi_led "rt2800pci-phy0::radio" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index cc3f212151..1c65b65a72 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -21,6 +21,7 @@ ramips_setup_interfaces() ucidef_set_interface_lan "eth0.1" ;; + 3g-6200n | \ argus-atp52b | \ b2c | \ nw718 | \ @@ -89,7 +90,7 @@ ramips_setup_macs() all0256n) lan_mac=$(ramips_get_mac_binary factory 40) ;; - + 3g-6200n | \ argus-atp52b | \ b2c | \ f5d8235-v1 | \ 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 a605b22f8c..db6e5c82f8 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 @@ -8,6 +8,10 @@ preinit_set_mac_address() { . /lib/ramips.sh case $(ramips_board_name) in + 3g-6200n) + mac=$(ramips_get_mac_binary factory 4) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; bc2 |\ esr-9753 |\ freestation5 |\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index a5a173436e..277d9da997 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -47,6 +47,9 @@ ramips_board_name() { machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo) case "$machine" in + *"Edimax 3g-6200n") + name="3g-6200n" + ;; *"Allnet ALL0256N") name="all0256n" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 1292b83e79..dba5e793b1 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -14,6 +14,7 @@ platform_check_image() { [ "$ARGC" -gt 1 ] && return 1 case "$board" in + 3g-6200n | \ all0256n | \ bc2 | \ dir-300-b1 | \ |