mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-06 10:25:52 +00:00
Release 1.3.5
* fix bug with definition net dev in old version of net-tools
This commit is contained in:
@ -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 '") != ''):
|
||||
|
Reference in New Issue
Block a user