mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix set mac address
This commit is contained in:
parent
0395613d5f
commit
57108e1660
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ _setup_macvlan() {
|
|||
set network.$1.masterintf=$_ifname
|
||||
EOF
|
||||
_macaddr=$(uci -q get "network.$1.macaddr")
|
||||
_setup_macaddr "$1_dev" "${_macaddr:-auto$(date +%s)}"
|
||||
_setup_macaddr "$1_dev" "${_macaddr:-$(dd if=/dev/urandom bs=1024 count=1 2>/dev/null | md5sum | sed -e 's/^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\).*$/\1:\2:\3:\4:\5:\6/' -e 's/^\(.\)[13579bdf]/\10/')}"
|
||||
}
|
||||
|
||||
#_setup_macvlan_update() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue