Skip to content

Commit

Permalink
fix plugin placas de red
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAccorinti committed Jul 23, 2018
1 parent 20d238b commit 53416a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
url = "https://github.com/HuayraLinux/huayra-about",
# py_modules = ["huayra-about"],
# scripts = ["huayra-about"],
data_files = [ ("share/huayra-about", ["src/huayra-about.py","src/rasti.py","src/markup.py","src/info_table.py","src/info_red.sh"]),
data_files = [ ("share/huayra-about", ["src/huayra-about.py","src/rasti.py","src/markup.py","src/info_table.py"]),
("share/huayra-about/media", ["src/media/huayra-menu-huayra.svg","src/media/huayra-about-background.svg","src/media/compartir.svg"]),
("share/huayra-about/plugins", ["src/plugins/__init__.py","src/plugins/01versiones.py","src/plugins/02arch.py","src/plugins/03cpu_mem.py","src/plugins/04kernel.py","src/plugins/05link.py","src/plugins/06hdparticiones.py","src/plugins/07wifi.py"]),
("share/applications", ["huayra-about.desktop"]),
Expand Down
2 changes: 0 additions & 2 deletions src/info_red.sh

This file was deleted.

9 changes: 5 additions & 4 deletions src/plugins/07wifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
import subprocess


LABEL = "Placas de Red"
LABEL = u"Placas de Red"


class Info(object):

@staticmethod
def text():
cmd= ['./info_red.sh']
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
cmd= ['lspci | grep -E "Network | network | Ethernet | ethernet | wireless | Wireless" | cut -c9-100']
process = subprocess.Popen(cmd,shell=True, stdout=subprocess.PIPE)
out, err = process.communicate()
info = out.strip()
info = '\n' + info
Expand All @@ -27,7 +27,8 @@ def label():


if __name__ == '__main__':
print '{0}: {1}'.format(Info.label(), Info.text())
#print '{0}: {1}'.format(Info.label(), Info.text())
null

else:
info_table.add_row_to_table(markup.label_set_markup(Info.label()), markup.text_set_markup(Info.text()), 2, "Placas de Red")

0 comments on commit 53416a4

Please sign in to comment.