Feature #938
closedAdd network status to UI
100%
Description
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.
Related issues
Updated by Hammel about 1 year ago
- 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).
Updated by Hammel about 1 year ago
- Priority changed from Urgent to Immediate
- Severity changed from 01 - Critical to 03 - Medium
Updated by Hammel about 1 year ago
- Blocks Bug #945: Don't show date/time if no network connection is available. added
Updated by Hammel about 1 year ago
- Severity changed from 03 - Medium to 02 - High
Updated by Hammel about 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 10 to 100
Implemented, tested on hardware and is working.
Code committed and pushed.
Closing issue.