From 0221673d1e2c282cac9d8afe9ef84a9632e2a870 Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Wed, 21 Jan 2015 21:37:56 +0000 Subject: [PATCH] gui: Use interface names from /sys/class/net when it exists. --- gui/exec.tcl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/exec.tcl b/gui/exec.tcl index 0fe7a63e..b08cb1cf 100644 --- a/gui/exec.tcl +++ b/gui/exec.tcl @@ -107,7 +107,12 @@ proc checkRJ45s {} { global systype node_list g_prefs if { [lindex $systype 0] == "Linux" } { - set extifcs [nexec localnode /sbin/ifconfig -a -s | tail -n +2 | awk "{ print \$1 }" | xargs] + if { [file exists /sys/class/net] && + [file isdirectory /sys/class/net] } { + set extifcs [nexec localnode ls /sys/class/net] + } else { + set extifcs [nexec localnode /sbin/ifconfig -a -s | tail -n +2 | awk "{ print \$1 }" | xargs] + } set extifcs \ [lreplace $extifcs [lsearch $extifcs lo] [lsearch $extifcs lo]] } else {