Prefer using ip instead of ifconfig.

Includes other minor improvements.
This commit is contained in:
tgoff0 2015-05-22 00:55:20 +00:00
parent 2f3ec89ef4
commit c68e05b4b5
5 changed files with 33 additions and 25 deletions

View file

@ -47,7 +47,7 @@ killall -q emaneeventservice
if [ -d /sys/class/net ]; then
ifcommand="ls -1 /sys/class/net"
else
ifcommand="ifconfig -a"
ifcommand="ip -o link show | sed -r -e 's/[0-9]+: ([^[:space:]]+): .*/\1/'"
fi
eval "$ifcommand" | awk '