aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index c3493a75..a4d74c02 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -10,7 +10,7 @@ export PATH
get_hwaddr ()
{
LC_ALL= LANG= ip -o link show ${1} 2>/dev/null | \
- sed 's/.*link\/ether \([[:alnum:]:]*\).*/\1/' | \
+ sed 's/.*link\/[^ ]* \([[:alnum:]:]*\).*/\1/' | \
awk '{ print toupper($0) }'
}