Release 1.3.5

* fix bug with definition net dev in  old version of net-tools
This commit is contained in:
arcan1s
2013-09-29 00:44:03 +04:00
parent 1f18e2fe67
commit c198b7596a
6 changed files with 31 additions and 29 deletions

View File

@ -69,8 +69,8 @@ class pyTextWidget(plasmascript.Applet):
try:
interfaces = []
for line in commands.getoutput("ifconfig -a").split("\n"):
if ((line != '') and (line[0] != ' ') and (line[0:3] != 'lo:')):
interfaces.append(line.split(":")[0])
if ((line != '') and (line[0] != ' ') and (line.split(":")[0].split()[0] != 'lo')):
interfaces.append(line.split(":")[0].split()[0])
for device in interfaces:
if (commands.getoutput("ifconfig " + device + " | grep 'inet '") != ''):