diff options
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 15 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 4b8242cb9f..a34abbb69f 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -162,6 +162,11 @@ dlink,dwr-116-a1|\ mzk-ex300np) set_wifi_led "$boardname:green:wifi" ;; +dlink,dwr-921-c1) + set_wifi_led "$boardname:green:wifi" + ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f" + ucidef_set_led_default "sigstrength" "Signal Strength" "$boardname:green:sigstrength" "0" + ;; dir-810l|\ mzk-750dhp|\ mzk-dp150n|\ 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 4441b2293e..8f3a95d3e3 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -81,6 +81,7 @@ ramips_setup_interfaces() dir-610-a1|\ dir-615-h1|\ dlink,dwr-116-a1|\ + dlink,dwr-921-c1|\ ew1200|\ firewrt|\ hc5661a|\ @@ -434,7 +435,8 @@ ramips_setup_macs() lan_mac=$(mtd_get_mac_ascii factory lanmac) wan_mac=$(mtd_get_mac_ascii factory wanmac) ;; - dlink,dwr-116-a1) + dlink,dwr-116-a1|\ + dlink,dwr-921-c1) wan_mac=$(jboot_config_read -m -i $(find_mtd_part "config") -o 0xE000) lan_mac=$(macaddr_add "$wan_mac" 1) ;; diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index d9f131b2a8..7b90f6ba12 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -108,6 +108,9 @@ get_status_led() { zbt-wg2626) status_led="$boardname:green:status" ;; + dlink,dwr-921-c1) + status_led="$boardname:green:sigstrength" + ;; asl26555-8M|\ asl26555-16M) status_led="asl26555:green:power" 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 67c05c9a46..c0c6a3ecad 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 @@ -54,7 +54,8 @@ board=$(board_name) case "$FIRMWARE" in "soc_wmac.eeprom") case $board in - dlink,dwr-116-a1) + dlink,dwr-116-a1|\ + dlink,dwr-921-c1) wan_mac=$(jboot_config_read -m -i $(find_mtd_part "config") -o 0xE000) wifi_mac=$(macaddr_add "$wan_mac" 1) jboot_eeprom_extract "config" 0xE000 diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index b052cf8625..44be484374 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -271,7 +271,8 @@ platform_check_image() { } return 0 ;; - dlink,dwr-116-a1) + dlink,dwr-116-a1|\ + dlink,dwr-921-c1) [ "$magic" != "0404242b" ] && { echo "Invalid image type." return 1 |