Update network.sh
This commit is contained in:
parent
011f910742
commit
217fcbef0c
1 changed files with 2 additions and 1 deletions
|
|
@ -243,7 +243,8 @@ getInfo() {
|
||||||
MAC=$(echo "$HOST" | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/')
|
MAC=$(echo "$HOST" | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VM_NET_MAC="${MAC,,//-/:}"
|
VM_NET_MAC="${MAC^^}"
|
||||||
|
VM_NET_MAC="${VM_NET_MAC//-/:}"
|
||||||
|
|
||||||
if [[ ${#VM_NET_MAC} == 12 ]]; then
|
if [[ ${#VM_NET_MAC} == 12 ]]; then
|
||||||
m="$VM_NET_MAC"
|
m="$VM_NET_MAC"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue