aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/uci-defaults
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-02 17:21:05 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-02 17:21:05 +0000
commit813aec6796c4345fcd43a4862e1ed5792699c478 (patch)
tree62bd2c99abca36cac76f4de399d4eac8ded452bb /target/linux/ramips/base-files/etc/uci-defaults
parentd578f3ac3869c505a77c71dd1f336acc1d74aab5 (diff)
downloadupstream-813aec6796c4345fcd43a4862e1ed5792699c478.tar.gz
upstream-813aec6796c4345fcd43a4862e1ed5792699c478.tar.bz2
upstream-813aec6796c4345fcd43a4862e1ed5792699c478.zip
ramips: add user-space support for the Omnima EMB HPM board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35467
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network5
2 files changed, 10 insertions, 0 deletions
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 f582e5cddf..104f201fb9 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -84,6 +84,11 @@ case $board in
nw718)
set_usb_led "nw718:amber:usb"
;;
+ omni-emb-hpm)
+ ucidef_set_led_default "power" "POWER" "emb:orange:power" "1"
+ ucidef_set_led_netdev "eth" "ETH" "emb:green:eth" "eth0"
+ set_wifi_led "emb:green:wifi"
+ ;;
sl-r7205)
set_wifi_led "rt2800pci-phy0::radio"
;;
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 cc5b8c2be2..b6fff7a2cc 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -122,6 +122,7 @@ ramips_setup_interfaces()
ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1"
;;
+ omni-emb-hpm|\
wli-tx4-ag300n)
ucidef_set_interface_lan "eth0"
;;
@@ -208,6 +209,10 @@ ramips_setup_macs()
wan_mac=$(ramips_get_mac_binary factory 40)
;;
+ omni-emb-hpm)
+ lan_mac=$(ramips_get_mac_binary factory 40)
+ ;;
+
f5d8235-v2)
lan_mac=$(ramips_get_mac_binary "u-boot" 262148)
wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)