Fix bug configuring network in debian

In debian the default awk version is mawk and does not support the
regexp [[:alnum:]]
pull/4/head
Javi Fontan 10 years ago
parent 1548710510
commit 47466e23bb

@ -114,7 +114,7 @@ EOT
get_interface_mac() get_interface_mac()
{ {
ip link show | awk '/^[0-9]+: [[:alnum:]]+:/ { device=$2; gsub(/:/, "",device)} /link\/ether/ { print device " " $2 }' ip link show | awk '/^[0-9]+: [A-Za-z0-9]+:/ { device=$2; gsub(/:/, "",device)} /link\/ether/ { print device " " $2 }'
} }
get_context_interfaces() get_context_interfaces()

Loading…
Cancel
Save