Add current IP address to status bar
It would be helpful to have the current IP address displayed in the status bar.
Updated by Hammel over 9 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
Added code to place current interface's IP addr in status bar, but this needs to be based on actual configuration and not what's in /etc/network/interfaces. So it needs to change to something like:
FILE* file = popen("/sbin/ifconfig wlan0 | grep 'inet addr:' | cut -d: -f2", "r");
fgets(buffer, 100, file);