SliTaz SliTaz Forum

You are not logged in.

#1 2014-12-21 10:59:07

agentk
Member
Registered: 2014-12-21
Posts: 5

Wifi not connecting at boot

Hi, I have just put slittaz rolling (though the same problem is apparent in RC5.2 and 4.0) on a eepc with atheros network card. The wifi card connects just fine if I use the wifi-box application or the slitaz panel. When I reboot though, the wifi does not automatically connect. I must go back into the wifi-box or slitaz panel, punch in the details press configure and away we go again.

The settings are all correct in the network.conf file and network.sh script is calling for it correctly. But no matter what, it will not auto connect at startup and invoking /etc/init.d/network.sh restart after slitaz has started will also not make it connect, even after bringing up the interface with ifconfig wlan0.

Can anyone suggest where else I can look or other suggestions on making it just connect at startup. Everything works ok using the apps to connect and the settings being entered match what is already in the network.conf file. And yes wifi is set = yes.

Thanks for your help.

Offline

#2 2014-12-21 11:20:16

agentk
Member
Registered: 2014-12-21
Posts: 5

Re: Wifi not connecting at boot

Hi again, ive actually just fixed the issue after looking at the system logs. It wasnt have the interface ready at time when it was trying to bring it up. I applied the following fix in the /etc/init.d/network.sh:

...

wifi() {

        if [ "$WIFI" = "yes" ] || fgrep -q "wifi" /proc/cmdline; then

# start: Patch for slow interace creation

                ii=1

                while [ $ii -le 20 ] && ! fgrep -q "$WIFI_INTERFACE" /proc/net/dev; do

                        ii='expr $ii + 1'

                        sleep 1

                        echo -n "."

                done

# end of patch

                ifconfig $INTERFACE down

                ...

As found here: http://forum.slitaz.org/topic/rolling-fix-for-slow-wifi-interface-creation

Thanks to the solution provided by audios1ave, saved me having to work something out!

Offline

#3 2014-12-21 11:25:55

agentk
Member
Registered: 2014-12-21
Posts: 5

Re: Wifi not connecting at boot

Just for clarity, my actual fix applied in /etc/init.d/network.sh is: (slightly different)

wifi() {

        if [ "$WIFI" = "yes" ]; then

#start slow interface wait

                ii=1

                while [ $ii -le 20 ] && ! fgrep -q "$WIFI_INTERFACE" /proc/net/dev; do

                        ii='expr $ii + 1'

                        sleep 1

                        echo -n "."

                done

#end slow interface wait

                ifconfig $INTERFACE down

Offline

#4 2014-12-21 11:28:04

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: Wifi not connecting at boot

/etc/network.conf

INTERFACE=

should match

WIFI_INTERFACE=

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]