diff options
Diffstat (limited to 'net-scripts/net/iproute2.sh')
-rw-r--r-- | net-scripts/net/iproute2.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net-scripts/net/iproute2.sh b/net-scripts/net/iproute2.sh index 377dc1e..d059f3f 100644 --- a/net-scripts/net/iproute2.sh +++ b/net-scripts/net/iproute2.sh @@ -132,7 +132,7 @@ iproute2_set_name() { # example "eth0:2 eth0:1" iproute2_get_aliases_rev() { local iface=$( interface_device "$1" ) - ip addr show dev "${iface}" | grep -o "${iface}:[0-9].*" | tac + ip addr show dev "${iface}" | grep -Eo "${iface}:[^ ]+" | tac } # bool iproute2_del_addresses(char *interface, bool onlyinet) |