summaryrefslogtreecommitdiff
path: root/target/linux/ramips
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
commit750d560767e8dcaabf854040f9502828ae363f19 (patch)
tree139b8d7ca2a08bff4be9ceaa5896bff077b9887d /target/linux/ramips
parentb5d7b359b2b9377f2817bcac56ec6843cb9c7ccd (diff)
downloadmtk-20170518-750d560767e8dcaabf854040f9502828ae363f19.zip
mtk-20170518-750d560767e8dcaabf854040f9502828ae363f19.tar.gz
mtk-20170518-750d560767e8dcaabf854040f9502828ae363f19.tar.bz2
ramips: set preinit interface mac on the hw550-3g board
Based on a patch by Daniel Golle <dgolle@allnet.de> SVN-Revision: 29453
Diffstat (limited to 'target/linux/ramips')
-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 9fef7d4..2d6a4b6 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
}