From 0a03c641166465667dd2a4fdee0da09b18254e64 Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 5 Dec 2011 17:27:06 +0000 Subject: [PATCH] ramips: set preinit interface mac on the hw550-3g board Based on a patch by Daniel Golle git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29453 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 4 ++++ 1 file changed, 4 insertions(+) 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 9fef7d471..2d6a4b6de 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 } -- 2.20.1