Re: NM before login?



On Thu, 2009-07-23 at 16:05 +0200, Eric Brunet lps ens fr wrote:
> Dans son message du lundi 11/05/09 à 11:04, Dan Williams a écrit:
> > > Is there a way of establishing (and keeping)
> > > a WiFi connection with NetworkManager
> > > before logging in?
> >
> [...]
> > 
> > and after a reboot, you should be able to use the connection editor to
> > mark your wifi connections as "Available to all users", which means they
> > will be available before login.
> 
> Hi,
> 
> This wasn't working for me in Fedora 10, but I upgraded to Fedora 11 and
> now it works nicely: the checkbox is no longer grayed out, I can check
> it, a file ifcfg-Auto_xxx appears in /etc/sysconfig/network-scripts and
> NetworkManager picks it at boot time.
> 
> However, /etc/rc.d/init.d/network picks it also. For each file

Yup

chkconfig network off

will turn that off for you and let NM just do its job.

Dan

> ifcfg-something in this repertory, the network service tries to run ifup
> on it. For instance, I have an ifcfg-Auto_tudia which contains
> 	ESSID="tudia"
> 	MODE=Managed
> 	SECURITYMODE=open
> 	DEFAULTKEY=1
> 	TYPE=Wireless
> 	BOOTPROTO=dhcp
> 	PEERDNS=yes
> 	PEERROUTES=yes
> 	NAME="Auto tudia"
> 	UUID=12ea49ce-5559-4adb-bae7-d5e12f33ef82
> 	ONBOOT=yes
> 	LAST_CONNECT=1247345950
> and if I run "ifup Auto_tudia", as is done at boot time by
> /etc/rc.d/init.d/network, I see
> 	Usage: grep [OPTION]... PATTERN [FILE]...
> 	Try `grep --help' for more information.
> 	Usage: grep [OPTION]... PATTERN [FILE]...
> 	Try `grep --help' for more information.
> 	
> 	Determining IP information for ... failed; no link present.  Check cable?
> The timeout takes 6 seconds.
> 
> Actually, I have serveral wireless networks for NetworkManager of the
> form ifcfg-Auto_xxx, and for each of them I have the two error messages
> from grep and the 6 second timeout.
> 
> In the end, everything works, but this minor problem makes booting take a
> longer time ! How can I avoid that ?
> 
> I tried to set ONBOOT=no in the file. /etc/rc.d/init.d/network now
> ignores them, but it seems that NetworkManager ignores them also.
> I tried to leave ONBOOT=yes and stop /etc/rc.d/init.d/network from being
> run at all, but then I don't have anymore a loopback interface.
> 
> 1) Is there a solution to avoid the delays ?
> 2) Shouldn't this solution be on by default when nm-connection-editor
>    creates the files ?
> 3) why does ifup choke on these ifcfg files ?
> 
> Thanks,
> 
> 	Éric Brunet
> 
> 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]