aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-05 17:27:06 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-05 17:27:06 +0000
commit306d52b8dadf8e05eb5a1af9434dc8931fcee137 (patch)
tree525b5867c1cb38264d079c42ae388d9f46a05227
parent953b52d3064d2fe439c0ee0e2fb90169822620f7 (diff)
downloadupstream-306d52b8dadf8e05eb5a1af9434dc8931fcee137.tar.gz
upstream-306d52b8dadf8e05eb5a1af9434dc8931fcee137.tar.bz2
upstream-306d52b8dadf8e05eb5a1af9434dc8931fcee137.zip
ramips: set preinit interface mac on the hw550-3g board
Based on a patch by Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29453 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac4
1 files changed, 4 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 9fef7d471a..2d6a4b6dee 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
@@ -13,6 +13,10 @@ preinit_set_mac_address() {
mac=$(maccalc or "$mac" "02:00:00:00:00:00")
ifconfig eth0 hw ether $mac 2>/dev/null
;;
+ hw550-3g)
+ mac=$(ramips_get_mac_binary factory 40)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
esac
}