]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
azure: Do not drop last byte of MAC addresses
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jun 2019 03:54:54 +0000 (04:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 1 Jul 2019 06:53:58 +0000 (07:53 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/helper/azure-setup

index 47d1473afca43a5ef37e043f3c687d504178671e..86042a20483f1c60f8f0e9a154781c7379859420 100644 (file)
@@ -15,7 +15,7 @@ get() {
 format_mac() {
        local mac="${1,,}"
 
 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() {
 }
 
 to_address() {