NetworkManager/clients
Thomas Haller f7875a42b0 nm-online: refactor and fix nm-online
Moving nm-online to async init introduced various issues:
- with a timeout of zero, nm-online would terminate with failure
  before initializing the NMClient instance.
- add a timeout for safeguarding the async creation of NMClient
- fix adding trailing newline for the progress bar.

While at it, refactor:
- use defines for the exit codes
- don't use exit(), but instead always properly quit the mainloop
  and cleanup all resources.
- in non-quiet mode, print the result [online] or [offline] at
  the end.

Fixes: c5f17a97ea

https://bugzilla.gnome.org/show_bug.cgi?id=777914
2017-02-02 11:23:14 +01:00
..
cli cli: add missing NULL-check 2017-01-29 12:56:31 +01:00
common cli: macsec support 2017-01-16 17:47:10 +01:00
tui all: use nm_utils_is_valid_iface_name() 2017-01-06 15:11:56 +01:00
nm-online.c nm-online: refactor and fix nm-online 2017-02-02 11:23:14 +01:00