Update network.sh

This commit is contained in:
Kroese 2024-02-08 17:19:00 +01:00 committed by GitHub
parent 011f910742
commit 217fcbef0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,7 +243,8 @@ getInfo() {
MAC=$(echo "$HOST" | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/')
fi
VM_NET_MAC="${MAC,,//-/:}"
VM_NET_MAC="${MAC^^}"
VM_NET_MAC="${VM_NET_MAC//-/:}"
if [[ ${#VM_NET_MAC} == 12 ]]; then
m="$VM_NET_MAC"