Hi again,

El 31/05/18 a las 10:02, aitor_czr escribió:
As i announced in the irc channel, i've extracted the code of the netstatus plugin for LXPanel. This plugin has been ported by Hong Jen Yee (PCManFM) from the original code comming from the GNOME2 netstatus panel applet.

I added more code to the main.c file, taken from wireless-tools:

http://gnuinos.org/NETDEV/

I'm also adding the FIFO receiving the essid and password from the password dialog of simple-netaid-gtk.

You can build the code using the makefile. First of all install *libiw-dev* and *ethtools*. The makefile links the code agains -lm and -liw. Once you have build the main.c, run the generated binary as root with the following options:

# ./netdev 0 -> This option gives the status of the network connection. The detection of the plug/unplug event will take a few seconds (as i said, it doesn't depend neither of ifplugd nor on netplugd)

# ./netdev 1 -> this other option lists all the available active wifis, giving a short information about each one (usefull for the Gtk TreeView of the frontend of simple-netaid)

This file will replace to the wlx suid binary of simple-netaid-gtk.

Hope you like it :)

 Aitor.


_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to