aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/preinit
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-16 11:50:25 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-16 11:50:25 +0000
commit7fd85258534035f8eae91f2737a2b0f3f532ebaf (patch)
tree302a7c7ebbb873709e3eb5e1265b528315158a61 /target/linux/ramips/base-files/lib/preinit
parent5a8c63b47e19f6569f54a046cfd74925d35550a6 (diff)
downloadupstream-7fd85258534035f8eae91f2737a2b0f3f532ebaf.tar.gz
upstream-7fd85258534035f8eae91f2737a2b0f3f532ebaf.tar.bz2
upstream-7fd85258534035f8eae91f2737a2b0f3f532ebaf.zip
ramips: use the new macaddr_* helpers instead of maccalc
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35615
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac4
1 files changed, 2 insertions, 2 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 6d3dd58c06..fcfb86bd59 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
@@ -27,7 +27,7 @@ preinit_set_mac_address() {
rt-n56u |\
sl-r7205)
mac=$(mtd_get_mac_binary factory 4)
- mac=$(maccalc or "$mac" "02:00:00:00:00:00")
+ mac=$(macaddr_setbit_la "$mac")
ifconfig eth0 hw ether $mac 2>/dev/null
;;
dir-300-b1 |\
@@ -38,7 +38,7 @@ preinit_set_mac_address() {
;;
dir-645)
mac=$(mtd_get_mac_ascii nvram lanmac)
- mac=$(maccalc or "$mac" "02:00:00:00:00:00")
+ mac=$(macaddr_setbit_la "$mac")
ifconfig eth0 hw ether $mac 2>/dev/null
;;
dap-1350)