diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-05 17:27:06 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-05 17:27:06 +0000 |
commit | 750d560767e8dcaabf854040f9502828ae363f19 (patch) | |
tree | 139b8d7ca2a08bff4be9ceaa5896bff077b9887d | |
parent | b5d7b359b2b9377f2817bcac56ec6843cb9c7ccd (diff) | |
download | upstream-750d560767e8dcaabf854040f9502828ae363f19.tar.gz upstream-750d560767e8dcaabf854040f9502828ae363f19.tar.bz2 upstream-750d560767e8dcaabf854040f9502828ae363f19.zip |
ramips: set preinit interface mac on the hw550-3g board
Based on a patch by Daniel Golle <dgolle@allnet.de>
SVN-Revision: 29453
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 4 |
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 } |