diff options
Diffstat (limited to 'net-scripts/net/ifconfig.sh')
-rw-r--r-- | net-scripts/net/ifconfig.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net-scripts/net/ifconfig.sh b/net-scripts/net/ifconfig.sh index 48ae2ba..d28f4b2 100644 --- a/net-scripts/net/ifconfig.sh +++ b/net-scripts/net/ifconfig.sh @@ -182,7 +182,7 @@ ifconfig_set_name() { # Outputs a space-separated list on stdout, in reverse order, for # example "eth0:2 eth0:1" ifconfig_get_aliases_rev() { - ifconfig | grep -o "^$1:[0-9]* " | tac + ifconfig | grep -Eo "^$1:[^ ]+" | tac } # bool ifconfig_del_addresses(char *interface, bool onlyinet) |