Here's how to disable MyBook World Edition (Firmware 2.00.15) LEDs.
I am using this on my system and the firmware is from the factory.
Steps
1. Login as the root user
2. Go to the /etc/init.d directory "cd /etc/init.d"
3. Use the vi-editor to create a new file "vi S90leds-off"
- in the vi-editor type "i" for insertation mode
- paste / type the following:
# S90leds-off
#
# LED power off - by conkrd
#
# Unload LED kernel module as it keeps manipulating them
rmmod wdc_leds
- press "ESC" and then type "ZZ"
- Now we're back in the shell
4. type "chmod ug+xr S90leds-off"
5. type "chmod o+x S90leds-off"
6. type "reboot" (this will also cut off your current telnet/ssh/whatever session)
If you ever want the LEDs back just delete the file S90leds-off with "rm /etc/init.d/S90leds-off".
Ok, I found that the kernel of MyBook keeps manipulting the lights
if you don't disable the kernel module. So this rc script basically removes
the module as it is done in the K90wdc-leds-off. Everytime you boot the lights turn on for
a while as they are normally loaded before they turn off.
All the files in /etc/init.d that start with the letter "S" are executed at startup
and all the files that start with the letter "K" are executed at shutdown.
The name "S90leds-off" is thus executed at startup and as the number 90 after that.
The higher the trailing number of the letter "K" or "S" the later the execution of the file (99 max).
Now personally I'd like to have a solution where the lights are off and
turn on if the system starts to overheat. If anyone has a solution that would be great.
I figure one solution would be to check out the code in /usr/local/wdc/sys-alert …
this makes the lights apparently blink in an emergency, but the "fuel-gauge"
file that it uses is unreadable. If the lights blink it means they are also turned off somehow.
Tried
LED_SYS="/sys/class/leds"
LED_POWERON="$LED_SYS/wdc-leds:power/brightness"
echo 0 > "$LED_POWERON"
and manipulating the given number, but this doesn't really effect the lights
in any other way than just lighting some on and some off.
Someone was asking what "kernel .config" means in an LED other thread and I've understood
that you have to recompile the kernel .config and install it on MyBook if you want to change that.
- conkrd