Re: NetworkManager status during startup

2013-06-11 Thread Dan Williams
On Mon, 2013-06-10 at 18:31 +0200, Ignaz Forster wrote:
> Hello,
> 
> during startup we have a few scripts that have to know if the system is 
> online or not. Therefore we wanted to use "nm-online -x" to detect the 
> state, however this fails quite unexpectedly: it seems NetworkManager 
> needs some time between returning and actually listening to requests. In 
> the meantime it will report the system as being offline.

Can you explain a bit more what you mean here?  Do you mean that if you
run NetworkManager, and shortly thereafter, nm-online, that nm-online
will exit before a network connection has started?

> Stopping NetworkManager and calling
>   NetworkManager; nmcli dev
> has the same effect and will result in the message "Error: 
> NetworkManager is not running."
> 
> Is this behavior intentional and / or are there any other ways to get 
> the current state without polling manually?

We could update nm-online with a new option to wait for NM to connect to
D-Bus (it would get the NameOwnerChanged signal from dbus), which would
be fairly trivial.

Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: MM 0.6.0 conflicts with USB GPS device?

2013-06-11 Thread poma
On 10.06.2013 20:28, Aleksander Morgado wrote:
> On 06/10/2013 01:55 AM, poma wrote:
 I don't think we should probe devices in the 'pci' subsystem unless
 whitelisted with ID_MM_PLATFORM_DRIVER_PROBE. Can you grab this patch,
 replace 'pnp' with 'pci' and retest?

 https://mail.gnome.org/archives/networkmanager-list/2013-June/txtfYzWozQRdF.txt
>> OK passed, plus we got a free scan prevention for NICs[1]. :)
>>
>>
>> poma
> 
> We'll need to do some more things before handling this properly (i.e.
> the patch is not enough), see
> https://bugzilla.gnome.org/show_bug.cgi?id=701956

No problemos, cause patch is for testing purposes you've asked for.


poma


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list