Merge branch 'always-sort-interfaces' into 'master'

[explorer/interfaces] Always sort output

See merge request ungleich-public/cdist!801
remotes/origin/feature/shell-lib
Darko Poljak 6 years ago
commit b754ae576c
  1. 6
      cdist/conf/explorer/interfaces

@ -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…
Cancel
Save