]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/helper/azure-setup
azure: Do not drop last byte of MAC addresses
[people/pmueller/ipfire-2.x.git] / src / initscripts / helper / azure-setup
index 47d1473afca43a5ef37e043f3c687d504178671e..86042a20483f1c60f8f0e9a154781c7379859420 100644 (file)
@@ -15,7 +15,7 @@ get() {
 format_mac() {
        local mac="${1,,}"
 
-       echo "${mac:0:2}:${mac:2:2}:${mac:4:2}:${mac:6:2}:${mac:8:2}"
+       echo "${mac:0:2}:${mac:2:2}:${mac:4:2}:${mac:6:2}:${mac:8:2}:${mac:10:2}"
 }
 
 to_address() {