Add network status to UI
It should be clear from the launcher if the network is connected to anything.
This would be the first step in moving network startup to the background.
- Status changed from New to In Progress
- % Done changed from 0 to 10
This is easily done with getifaddrs(3). There is an example in the man page. All we need to do is test for an IPv4 address (aka AF_INET) and if there is one then we enable the device icon.
There are two device icons: eth0 and wlan0. If the icon is displayed, the network is enabled with an IP address.
piboxd is monitoring for port events (see eth.c). It should write the events to a FIFO which launcher monitors. Launcher only needs to know ANY event occurred, so it doesn't need to read and parse the event. Just that if an event happens then launcher should retest the interfaces with getifaddrs. Just be sure to open the FIFO as r/w in piboxd so it can control when the FIFO is closed (re: when piboxd exits).