Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68198 - wpa_supplicant 0.2.5 init.d script starts too late
Summary: wpa_supplicant 0.2.5 init.d script starts too late
Status: RESOLVED DUPLICATE of bug 70226
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 13:38 UTC by Martin Gramatke
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gramatke 2004-10-19 13:38:57 UTC
The script start order seems to be:
1. net
2. ntp-client
3. wpa_supplicant
With the result that ntp-client fails because it can not connect to the internet. This is quite strange because there is a depend() { before net } statement in /etc/init.d/wpa_supplicant. So it should start before net, but it doesn't.

Anyone else having this problem? Does your wpa_supplicant start before net?

Anyway this init.d script and the conf.d files are a great improvement!

Reproducible: Always
Steps to Reproduce:




My system is ~x86, emerge --info: 
 
Portage 2.0.51_rc9 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.7 
i686) 
================================================================= 
System uname: 2.6.7 i686 Intel(R) Pentium(R) III Mobile CPU      1133MHz 
Gentoo Base System version 1.5.3 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium3 -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks sandbox" 
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ 
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ 
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j1" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="X aalib acpi acpi4linux alsa apm arts avi berkdb bitmap-fonts crypt cups 
doc dvd encode f77 foomaticdb gdbm gif gnokii gphoto2 gpm gps gtk gtk2 imlib 
irda java jpeg kde libg++ libwww mad maildir mikmod mmx motif mpeg mplayer nas 
ncurses nlsoggvorbis opengl oss pam pcmcia pdflib perl png pnp python qt 
quicktime radeon readline samba sdl slang sms spell sse ssl svga tcltk tcpd 
tetex truetype usb wifi x86 xine xml2 xmms xprint xscreensaver xv zlib 
linguas_de"
Comment 1 Henrik Brix Andersen 2004-10-19 23:37:57 UTC
Please attach the output of 'rc-update show' to this bug report.
Comment 2 Martin Gramatke 2004-10-20 07:55:15 UTC
sorry, I forgot:

lab5 ~ # rc-update -s
                acct |
               acpid |
           alsasound |      default
                atop |
            bootmisc | boot
             checkfs | boot
           checkroot | boot
               clock | boot
         consolefont | boot
         crypto-loop |
               cupsd |
               dcron |      default
          domainname | boot
                famd |
                 gpm |
              hdparm |      default
            hostname | boot
             hotplug | boot
             keymaps | boot
                lisa |
               local |      default nonetwork
          localmount | boot
             metalog | boot
             modules | boot
                 nas |
            net.ath0 |      default
            net.eth0 |
            net.eth1 |
              net.lo | boot
            netmount |
                nscd |
          ntp-client |      default
                ntpd |      default
             numlock |
              pcmcia | boot
             portmap |
             postfix |      default
             reslisa |
           rmnologin | boot
              rsyncd |
               samba |
              serial | boot
              smartd |
               spamd |      default
           speedfreq |      default
                sshd |
             urandom | boot
      wpa_supplicant |      default
                 xdm |      default
                 xfs |
              xinetd |
              xprint |
Comment 3 Henrik Brix Andersen 2004-10-21 11:22:37 UTC
Confirmed. Odd since /etc/init.d/wpa_supplicant has:

depend() {
        before net
}
Comment 4 Henrik Brix Andersen 2004-10-21 11:26:43 UTC
/etc/init.d/iptables has a depend() { before net } as well - on my system iptables is started after the net.* scripts as well.
Comment 5 Martin Gramatke 2004-10-22 09:57:43 UTC
I added the lines
        before ntp-client
        before ntpd
right behind
        before net
in /etc/init.d/wpa_supplicant. So this script starts before the ntp scripts and my primary issue is solved.

But I still wonder, why wpa_supplicant still starts after net.ath0. As brix already wrote, this is most probably not a problem of the wpa_supplicant script itself.
Comment 6 Henrik Brix Andersen 2004-10-28 03:23:14 UTC
Adding base-system to CC: - hopefully they'll have a clue :-/
Comment 7 Jos Delbar 2004-12-12 12:55:03 UTC
I have the same problem, which also applies to the new wpa_supplicant-0.3.0. I suggest you add wpa_supplicant to the boot script list for now, to force it to start before the net scripts:

rc-update add wpa_supplicant boot
Comment 8 Henrik Brix Andersen 2005-01-10 09:04:56 UTC

*** This bug has been marked as a duplicate of 70226 ***