aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files')
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network1
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 12 insertions, 1 deletions
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 fef89eae0e..469811eb2b 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
@@ -104,7 +104,8 @@ case "$FIRMWARE" in
mzk-w300nh2 | \
ur-326n4g | \
ur-336un | \
- xdxrn502j)
+ xdxrn502j | \
+ hg255d)
rt2x00_eeprom_extract "factory" 0 512
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index 608816f195..036d311d9b 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -124,6 +124,11 @@ case $board in
wcr-150gn)
set_usb_led "wcr150gn:amber:user"
;;
+ hg255d)
+ set_wifi_led "hg255d:wlan"
+ set_usb_led "hg255d:usb"
+ ucidef_set_led_netdev "eth" "Internet" "hg255d:internet" "eth0.2"
+ ;;
wnce2001)
set_wifi_led "netgear:green:wlan"
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 747a83d454..cbacd3d621 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -192,6 +192,7 @@ ramips_setup_macs()
;;
rt-n13u | \
+ hg255d | \
fonera20n)
lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(macaddr_add "$lan_mac" 1)
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index c5f216f780..22c9885f39 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -217,6 +217,9 @@ ramips_board_detect() {
*"XDX RN502J")
name="xdxrn502j"
;;
+ *"HG255D")
+ name="hg255d"
+ ;;
*)
name="generic"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index c7f06b2f43..3513ff4196 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -42,6 +42,7 @@ platform_check_image() {
rt-n13u | \
freestation5 | \
hw550-3g | \
+ hg255d | \
mofi3500-3gn | \
mpr-a2 | \
mzk-w300nh2 | \