mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
switched from using ifconfig to ip command to set mac address of wlan
This commit is contained in:
committed by
igorpecovnik
parent
97362fd408
commit
d2b49456de
@@ -17,5 +17,6 @@ cpuSerialNum() {
|
||||
/bin/flock -w2 $nvmem /bin/od -An -vtx1 -j $serNumOffset -N 5 $nvmem
|
||||
}
|
||||
|
||||
Id=`cpuSerialNum` || exit #fail if Rockchip nvmem not available
|
||||
/sbin/ifconfig $1 hw ether $2:`echo $Id | tr ' ' :`
|
||||
Id=`cpuSerialNum` && { #fail if Rockchip nvmem not available
|
||||
/sbin/ip link set $1 address $2:`echo $Id | tr ' ' :`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user