site  contact  subhomenews

network_tray now version 3.4

November 19, 2018 — BarryK

network_tray is the network activity applet in the tray, in EasyOS. Version 3.3 wasn't working quite right with NetworkManager.

Version 3.3 showed a network connection if any of the interfaces is up. In my PC, there are eth0, eth1, wlan0 and wlan1, but only eth0 is connected to the Internet. The others are not connected to anything, however NetworkManager has brought them up.

Note, by "up", this is what you would do if you typed "ifconfig eth1 up" in a terminal. In itself, that will not necessarily give any network or Internet connection. Normally, if the interface has a connection to (a cable in the case of eth1) a router or hotspot of some kind, with a DHCP server running on it, the PC would need to run a DHCP-client, for example "dhcpcd eth1", to be assigned an IP address. Once that is done, we may have attained Internet access.

Version 3.3 was indicating an Internet connection purely based on the interfaces being up, which is wrong.

Easy has pup_event, which, among other things, reports when Internet is up and down. There is a daemon, pup_event_frontend_d, which reports when an interface (or interfaces) has achieved Internet access, by writing the interface name to file /tmp/pup_event_backend/network_

I have changed network_tray to monitor this file, so now it accurately knows when Internet connectivity has gone up, or down.

Here is the new source:

http://distro.ibiblio.org/easyos/source/oe/pyro/network_tray-3.4.tar.gz

If interested, here is some information about pup_event:

http://bkhome.org/news/201802/pupevent-service-manager.html 


Tags: easy