try to put something in your script that log if your case is executed instead of control the leds, like "logger whatever_you_want"<div><br><div class="gmail_quote">On Mon, May 16, 2011 at 7:10 PM, Luca <span dir="ltr"><<a href="mailto:fush81@gmail.com">fush81@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks for the help.<br>
I have read that document. Now /etc/init.d/rc.firewall starts<br>
regularly. I have add<br>
<br>
case "$1" in "start")   instead of case "$1" in "") inside rc.firewall script<br>
....<br>
and run the command<br>
update-rc.d rc.firewall defaults 19.<br>
I did the same thing for LEDs. I have created a script called rc.leds:<br>
<br>
<br>
#!/bin/sh<br>
### BEGIN INIT INFO<br>
# Provides:          Disable leds<br>
# Required-Start:    $remote_fs $syslog<br>
# Required-Stop:     $remote_fs $syslog<br>
# Default-Start:     2 3 4 5<br>
# Default-Stop:      0 1 6<br>
# Short-Description: Script to disable leds<br>
# Description:       This file should be used to construct scripts to be<br>
#                    placed in /etc/init.d.<br>
### END INIT INFO<br>
<br>
case "$1" in<br>
"start")<br>
<div class="im">echo 0 > /sys/class/leds/alix\:1/brightness<br>
echo 0 > /sys/class/leds/alix\:2/brightness<br>
echo 0 > /sys/class/leds/alix\:3/brightness<br>
</div>;;<br>
"stop")<br>
echo 1 > /sys/class/leds/alix\:1/brightness<br>
echo 1 > /sys/class/leds/alix\:2/brightness<br>
echo 1 > /sys/class/leds/alix\:3/brightness<br>
;;<br>
esac<br>
<br>
 I put it in /etc/init.d and I gave executable permission before run:<br>
update-rc.d rc.leds defaults 19<br>
but after a reboot LEDs remain lit. What's wrong?<br>
<font color="#888888"><br>
--<br>
Luca F.<br>
<br>
2011/5/16 Punky Tse <<a href="mailto:punkytse@punknix.com">punkytse@punknix.com</a>>:<br>
</font><div><div></div><div class="h5">> Please read:<br>
> <a href="http://www.debian.org/doc/FAQ/ch-customizing.en.html#s-custombootscripts" target="_blank">http://www.debian.org/doc/FAQ/ch-customizing.en.html#s-custombootscripts</a><br>
><br>
> - Punky<br>
><br>
> On 16/5/2011 19:16, Luca wrote:<br>
>><br>
>> Hi all,<br>
>> I have a little problem with voyage-linux 0.7.0. and my alix 3d3.<br>
>> This is my /etc/init.d/rc.local<br>
>> ...<br>
>> do_start() {<br>
>>         if [ -x /etc/rc.local ]; then<br>
>>                 [ "$VERBOSE" != no ]&&  log_begin_msg "Running local<br>
>> boot scripts (/etc/rc.local)"<br>
>>                 /etc/rc.local<br>
>>                 ES=$?<br>
>>                 [ "$VERBOSE" != no ]&&  log_end_msg $ES<br>
>>                 return $ES<br>
>>         fi<br>
>> }<br>
>><br>
>> case "$1" in<br>
>>     start)<br>
>>         do_start<br>
>>         mount /dev/sda1 /mnt/scambio -o umask=000<br>
>>         echo 0>  /sys/class/leds/alix\:1/brightness<br>
>>         echo 0>  /sys/class/leds/alix\:2/brightness<br>
>>         echo 0>  /sys/class/leds/alix\:3/brightness<br>
>>       #  /etc/init.d/rc.firewall<br>
>>         ;;<br>
>>     restart|reload|force-reload)<br>
>>         echo "Error: argument '$1' not supported">&2<br>
>>         exit 3<br>
>>         ;;<br>
>><br>
>> ....<br>
>> As you can see I mount a usb pendrive and I turn off LEDs. The problem<br>
>> is that LEDs do not go off, as if the statement was not executed while<br>
>> the usb pendrive is mounted correctly. If I enable script for the<br>
>> firewall (It is now commented) it still does not run at boot. If I run<br>
>> those commands from the console (after the boot) LEDs go off normally<br>
>> and the firewall starts normally. What's wrong?<br>
>><br>
>> Thanks in advance.<br>
>><br>
>> --<br>
>> Luca F.<br>
>><br>
>> _______________________________________________<br>
>> Voyage-linux mailing list<br>
>> <a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
>> <a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
><br>
><br>
> --<br>
><br>
> Regards,<br>
> Kim-man "Punky" Tse<br>
><br>
> * Open Source Embedded Solutions and Systems<br>
>  - Voyage Linux (<a href="http://linux.voyage.hk" target="_blank">http://linux.voyage.hk</a>)<br>
>  - Voyage ONE   (<a href="http://linux.voyage.hk/voyage-one" target="_blank">http://linux.voyage.hk/voyage-one</a>)<br>
>  - Voyage MPD   (<a href="http://linux.voyage.hk/voyage-mpd" target="_blank">http://linux.voyage.hk/voyage-mpd</a>)<br>
> * Voyage Store   (<a href="http://store.voyage.hk" target="_blank">http://store.voyage.hk</a>)<br>
><br>
><br>
<br>
_______________________________________________<br>
Voyage-linux mailing list<br>
<a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
<a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
</div></div></blockquote></div><br></div>