Please read:
http://www.debian.org/doc/FAQ/ch-customizing.en.html#s-custombootscripts
- Punky
On 16/5/2011 19:16, Luca wrote:
Hi all,
I have a little problem with voyage-linux 0.7.0. and my alix 3d3.
This is my /etc/init.d/rc.local
...
do_start() {
if [ -x /etc/rc.local ]; then
[ "$VERBOSE" != no ]&& log_begin_msg "Running local
boot scripts (/etc/rc.local)"
/etc/rc.local
ES=$?
[ "$VERBOSE" != no ]&& log_end_msg $ES
return $ES
fi
}
case "$1" in
start)
do_start
mount /dev/sda1 /mnt/scambio -o umask=000
echo 0> /sys/class/leds/alix\:1/brightness
echo 0> /sys/class/leds/alix\:2/brightness
echo 0> /sys/class/leds/alix\:3/brightness
# /etc/init.d/rc.firewall
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported">&2
exit 3
;;
....
As you can see I mount a usb pendrive and I turn off LEDs. The problem
is that LEDs do not go off, as if the statement was not executed while
the usb pendrive is mounted correctly. If I enable script for the
firewall (It is now commented) it still does not run at boot. If I run
those commands from the console (after the boot) LEDs go off normally
and the firewall starts normally. What's wrong?
Thanks in advance.
--
Luca F.
_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux
--
Regards,
Kim-man "Punky" Tse
* Open Source Embedded Solutions and Systems
- Voyage Linux (http://linux.voyage.hk)
- Voyage ONE (http://linux.voyage.hk/voyage-one)
- Voyage MPD (http://linux.voyage.hk/voyage-mpd)
* Voyage Store (http://store.voyage.hk)
_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux