From 6d66aa5caf891f469ea60d3c2e06a01382fae58c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 27 Sep 2004 20:03:22 +0000 Subject: be more liberal in what we accept for link types (#90602, #127984) --- sysconfig/network-scripts/network-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts') 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) }' } -- cgit v1.2.1