[explorer/interfaces] Always sort output
Before, only the output of ifconfig was sorted.
This commit is contained in:
parent
7981f81dcd
commit
55f8036377
1 changed files with 6 additions and 8 deletions
|
@ -21,10 +21,8 @@
|
|||
if command -v ip >/dev/null
|
||||
then
|
||||
ip -o link show | sed -n 's/^[0-9]\+: \(.\+\): <.*/\1/p'
|
||||
|
||||
elif command -v ifconfig >/dev/null
|
||||
then
|
||||
ifconfig -a \
|
||||
| sed -n -E 's/^(.*)(:[[:space:]]*flags=|Link encap).*/\1/p' \
|
||||
ifconfig -a | sed -n -E 's/^(.*)(:[[:space:]]*flags=|Link encap).*/\1/p'
|
||||
fi \
|
||||
| sort -u
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue