Prefer using ip instead of ifconfig.
Includes other minor improvements.
This commit is contained in:
parent
2f3ec89ef4
commit
c68e05b4b5
5 changed files with 33 additions and 25 deletions
|
@ -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 '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue