gui: Trivial code cleanup.
This commit is contained in:
parent
e5159ad9d8
commit
42227bce83
1 changed files with 1 additions and 2 deletions
|
@ -107,8 +107,7 @@ proc checkRJ45s {} {
|
|||
global systype node_list g_prefs
|
||||
|
||||
if { [lindex $systype 0] == "Linux" } {
|
||||
if { [file exists /sys/class/net] &&
|
||||
[file isdirectory /sys/class/net] } {
|
||||
if { [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]
|
||||
|
|
Loading…
Reference in a new issue