SliTaz SliTaz Forum

You are not logged in.

#1 2012-10-14 22:52:55

lmart
Member
Registered: 2011-04-04
Posts: 61

network.sh log

when network.sh executes, (1) is there a log produced of the commands and terminal outputs and, (2) if there is a log, what is the path/location?

thanks

Offline

#2 2012-10-15 06:54:15

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: network.sh log

All scripts including network.sh are logged in /var/log/boot.log at boot time.

Offline

#3 2012-10-15 12:10:30

lmart
Member
Registered: 2011-04-04
Posts: 61

Re: network.sh log

@Bellard,

thanks

if the network script is run after boot, will it be logged to the same file?

Offline

#4 2012-10-15 12:51:06

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: network.sh log

You have to create the log yourself:

# script -c '/etc/init.d/network.sh' /path/to/network.log

Offline

#5 2012-10-15 13:04:00

lmart
Member
Registered: 2011-04-04
Posts: 61

Re: network.sh log

@Bellard,

thanks, will give it a try

Offline

#6 2012-10-15 14:24:37

lmart
Member
Registered: 2011-04-04
Posts: 61

Re: network.sh log

@Bellard,

thanks again; likely asked the wrong question

network.sh passes certain commands to the kernel

trying to determine what those commands are; read network.sh but it is beyond my scripting skills

had several problems with wifi; @mojo helped me finally get wifi working

now trying to understand what commands are passed from the script to get wifi working

thanks

Offline

#7 2012-10-16 06:46:47

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: network.sh log

# script -c 'sh -x /etc/init.d/network.sh' /path/to/network.log

Offline

#8 2012-10-16 15:00:44

lmart
Member
Registered: 2011-04-04
Posts: 61

Re: network.sh log

@Bellard,

thanks; me thinks me screwed things up

typed following command in root terminal; after running, wifi will not work

cp /media/MULTIBOOT/sys/slitaz-4.0/network.conf /etc/

tazpkg install /media/MULTIBOOT/sys/slitaz-4.0/ipw2200-firmware-3.1.tazpkg

script -c 'sh -x /etc/init.d/network.sh stop' /media/MULTIBOOT/sys/slitaz-4.0/network-stop.log

script -c 'sh -x /etc/init.d/network.sh start' /media/MULTIBOOT/sys/slitaz-4.0/network-start.log

background info: running slitaz 4.0 via YUMI.

next 2 commands from @mojo; they worked

  cp /media/MULTIBOOT/sys/slitaz-4.0/network.conf /etc/

  tazpkg install /media/MULTIBOOT/sys/slitaz-4.0/ipw2200-firmware-3.1.tazpkg

after running these 2 commands the first time, wifi no longer works

  script -c 'sh -x /etc/init.d/network.sh stop' /media/MULTIBOOT/sys/slitaz-4.0/network-stop.log

  script -c 'sh -x /etc/init.d/network.sh start' /media/MULTIBOOT/sys/slitaz-4.0/network-start.log

#1 ?any idea what screwed up?; in interim, will rebuild slitaz from scratch

#2 @mojo's original commands

    /etc/init.d/network.sh stop

    /etc/init.d/network.sh start

#3 once working again, would like to put the 4 following commands into a script. ?when calling another script from within a script is the correct syntax ". script.sh"?

    cp /media/MULTIBOOT/sys/slitaz-4.0/network.conf /etc/

    tazpkg install /media/MULTIBOOT/sys/slitaz-4.0/ipw2200-firmware-3.1.tazpkg

    /etc/init.d/network.sh stop

    /etc/init.d/network.sh start

Offline

#9 2012-10-16 22:43:28

lmart
Member
Registered: 2011-04-04
Posts: 61

Re: network.sh log

found the error of my ways ... disregard the last post

would like to put the 6 following commands into a script. ?when calling another script from within a script is the correct syntax ". script.sh"?

cp /media/MULTIBOOT/sys/slitaz-4.0/network.conf /etc/

tazpkg install /media/MULTIBOOT/sys/slitaz-4.0/ipw2200-firmware-3.1.tazpkg

modprobe -r ipw2200

modprobe ipw2200

/etc/init.d/network.sh stop

/etc/init.d/network.sh start

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) ]