On modern systems, you can use DBus to inquiry NetworkManager whether there is an Internet connection, or something that resembles that. Firefox asks NetworkManager the same question and updates the "Work offline" flag accordingly.
-- aiccu init.d script will race dhclient (upstart issue?) https://bugs.launchpad.net/bugs/223825 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs