diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-16 11:50:25 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-16 11:50:25 +0000 |
commit | 5ed3063be15e50fe2927210f749bdb71903b8be1 (patch) | |
tree | 316caf5ccda76db48c42faa5626b055fcfac68ac /target/linux/ramips/base-files/lib | |
parent | ce72a70117e7c04466dd5ddde008d9c718c5f09c (diff) |
ramips: use the new macaddr_* helpers instead of maccalc
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35615 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 4 |
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 6d3dd58c0..fcfb86bd5 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) |