From 47466e23bba2bc167027b70c39953ef5d2821258 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 24 Jul 2014 16:31:41 +0200 Subject: [PATCH] Fix bug configuring network in debian In debian the default awk version is mawk and does not support the regexp [[:alnum:]] --- base_deb/etc/one-context.d/00-network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_deb/etc/one-context.d/00-network b/base_deb/etc/one-context.d/00-network index 9079052..47ddde1 100755 --- a/base_deb/etc/one-context.d/00-network +++ b/base_deb/etc/one-context.d/00-network @@ -114,7 +114,7 @@ EOT 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()