SliTaz SliTaz Forum archive

This forum is now a read-only archive

The SliTaz community has moved to Maille, a forum made for SliTaz.

We looked hard for a replacement for this aging forum, including a move from bbPress to FluxBB last June. But spam bots now get through sign-up even with mail confirmation, and these forum engines are barely maintained anymore. So we wrote a forum in the SliTaz spirit: small, fast, no JavaScript, works on old machines and in text browsers. Everything here stays readable.

Go to Maille

You are not logged in.

#1 2015-07-04 19:31:27

llev
Member
Registered: 2011-12-09
Posts: 568

network.sh

Hi all,

After a long inactivity I upgraded basic packages. So now I have the latest network.sh which contains these changes: http://hg.slitaz.org/slitaz-boot-scripts/rev/f3e7c1cc6aef

I faced two problems:

1) Why call stop() from start()? Each time I boot this shuts down my Wifi card and starts it again right away, which adds a delay to the boot process; maybe does it wear off the card as well?

2) After commenting out "stop" in start(), I noticed there was still a delay before the "Configuring Wi-Fi..." message. I think this line:

[c][ "$WIFI" != 'yes' ] && ifconfig $INTERFACE up & sleep 5[/c]

should be changed into:

[c][ "$WIFI" != 'yes' ] && ( ifconfig $INTERFACE up & sleep 5 )[/c]

because I see no point in waiting when the conditional is false :-)

Cheers!

Offline

#2 2015-07-05 08:26:41

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: network.sh

Hi llev,

If memory serves me well (3 months passed), "stop" in front of "start" here is for the next reason:

Imagine you are using TazPanel. Open Wireless configuration, and you see Wireless is stopped. Click "start" button.

Now imagine you need to switch to Wired connection. Open Wired configuration, and you see Wired is stopped. Click "start" button.

Anywhere I've read SliTaz supported only one (of Wireless / Wired) connection at a time. But if we not stopping connection before start we'll get both Wireless and Wired working at a time.

I haven't free time yet, but seems I can change logic a bit: in front of "start" — down all interfaces but interface listed in configuration file; then start it if it not started yet.

Offline

#3 2015-07-05 23:25:39

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: network.sh

Hi llev,

Changes: http://hg.slitaz.org/slitaz-boot-scripts/rev/0c9119dea7b8

Released: http://cook.slitaz.org/cooker.cgi?pkg=slitaz-boot-scripts

Package: slitaz-boot-scripts-403

Please try it.

It works fine in my system allowing switch Eth<->Wi-Fi without stopping.

Offline

#4 2015-10-02 19:52:28

llev
Member
Registered: 2011-12-09
Posts: 568

Re: network.sh

Hi Aleksej,

Sorry I've been off for some months. I'll try as soon as possible. Thanks for your work.

Offline

#5 2015-10-04 08:25:14

llev
Member
Registered: 2011-12-09
Posts: 568

Re: network.sh

I upgraded the package, and it works as expected.

Thanks!

Offline

#6 2015-10-04 10:35:25

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: network.sh

Hi llev,

Nice to hear it.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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