Commit 5dd3d1ab authored by Kirill Smelkov's avatar Kirill Smelkov

X neotest: sort NIC names

This would prevent e.g. eth1 going before eth0 as it was the case in 55a64368.
parent 7d57d607
...@@ -618,7 +618,7 @@ system_info() { ...@@ -618,7 +618,7 @@ system_info() {
# all NICs # all NICs
# XXX warn if ethtool is not there # XXX warn if ethtool is not there
find /sys/class/net -type l -not -lname '*virtual*' | \ find /sys/class/net -type l -not -lname '*virtual*' |sort | \
while read nic; do while read nic; do
nicname=`basename $nic` # /sys/class/net/eth0 -> eth0 nicname=`basename $nic` # /sys/class/net/eth0 -> eth0
echo -n "# $nicname: " echo -n "# $nicname: "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment