nmcli needs ability to check for device readyness
I'm currently writing a script using nmcli that includes these lines:
sudo ifconfig "${IF_DEV}" down
...
sudo ifconfig "${IF_DEV}" up
sudo nmcli device connect "${IF_DEV}"
The last line (which should reconnect my to my last wifi network) sometimes fails. If I sleep sufficiently, then it succeeds. Therefore, it's my best guess that the device isn't yet ready. What I'd like to do, therefore, is to make some call to nmcli that will either [a] exit only after the device is ready or [b] exit on error if the device isn't ready.
The actual error I get when I don't sufficiently sleep before the nmcli...connect
is:
Error: Failed to add/activate new connection: A 'wireless' setting is required if no AP path was given.
PS: Is there a mailing list of forum for disucssing issues about NetworkManager prior to submitting a bug report? I didn't see one in the list of mailing lists