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
network.sh log
(9 posts) (2 voices)-
Posted 12 years ago #
-
All scripts including network.sh are logged in /var/log/boot.log at boot time.
Posted 12 years ago # -
@Bellard,
thanks
if the network script is run after boot, will it be logged to the same file?Posted 12 years ago # -
You have to create the log yourself:
# script -c '/etc/init.d/network.sh' /path/to/network.logPosted 12 years ago # -
@Bellard,
thanks, will give it a tryPosted 12 years ago # -
@Bellard,
thanks again; likely asked the wrong questionnetwork.sh passes certain commands to the kernel
trying to determine what those commands are; read network.sh but it is beyond my scripting skillshad 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 workingthanks
Posted 12 years ago # -
# script -c 'sh -x /etc/init.d/network.sh' /path/to/network.log
Posted 12 years ago # -
@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.logbackground 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 startPosted 12 years ago # -
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 startPosted 12 years ago #
Reply
You must log in to post.