projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: convert MAC address location offsets to hexadecimal
[openwrt/openwrt.git]
/
target
/
linux
/
ar71xx
/
base-files
/
lib
/
preinit
/
05_set_iface_mac_ar71xx
diff --git
a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
index 7d3e82813d9848a0700c492384edb5d5957e23f7..b0aa150817982958bc8c002aeaaaf281196585bd 100644
(file)
--- a/
target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
+++ b/
target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
@@
-24,7
+24,7
@@
preinit_set_mac_address() {
case $(board_name) in
c-55|\
c-60)
case $(board_name) in
c-55|\
c-60)
- mac_lan=$(mtd_get_mac_binary art 0)
+ mac_lan=$(mtd_get_mac_binary art 0
x0
)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
;;
dir-615-c1|\
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
;;
dir-615-c1|\
@@
-36,19
+36,19
@@
preinit_set_mac_address() {
;;
mr18|\
z1)
;;
mr18|\
z1)
- mac_lan=$(mtd_get_mac_binary_ubi board-config
102
)
+ mac_lan=$(mtd_get_mac_binary_ubi board-config
0x66
)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
;;
r6100)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
;;
r6100)
- mac_lan=$(mtd_get_mac_binary caldata 0)
+ mac_lan=$(mtd_get_mac_binary caldata 0
x0
)
[ -n "$mac_lan" ] && ifconfig eth1 hw ether "$mac_lan"
[ -n "$mac_lan" ] && ifconfig eth1 hw ether "$mac_lan"
- mac_wan=$(mtd_get_mac_binary caldata 6)
+ mac_wan=$(mtd_get_mac_binary caldata
0x
6)
[ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan"
;;
rambutan)
[ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan"
;;
rambutan)
- mac_lan=$(mtd_get_mac_binary art 0)
+ mac_lan=$(mtd_get_mac_binary art 0
x0
)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
- mac_wan=$(mtd_get_mac_binary art 6)
+ mac_wan=$(mtd_get_mac_binary art
0x
6)
[ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan"
;;
wrt160nl)
[ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan"
;;
wrt160nl)