[explorer/interfaces] Always sort output

Before, only the output of ifconfig was sorted.
remotes/origin/feature/shell-lib
Dennis Camera 6 years ago
parent 7981f81dcd
commit 55f8036377
  1. 6
      cdist/conf/explorer/interfaces

@ -21,10 +21,8 @@
if command -v ip >/dev/null if command -v ip >/dev/null
then then
ip -o link show | sed -n 's/^[0-9]\+: \(.\+\): <.*/\1/p' ip -o link show | sed -n 's/^[0-9]\+: \(.\+\): <.*/\1/p'
elif command -v ifconfig >/dev/null elif command -v ifconfig >/dev/null
then then
ifconfig -a \ ifconfig -a | sed -n -E 's/^(.*)(:[[:space:]]*flags=|Link encap).*/\1/p'
| sed -n -E 's/^(.*)(:[[:space:]]*flags=|Link encap).*/\1/p' \ fi \
| sort -u | sort -u
fi

Loading…
Cancel
Save