microapl is a wrapper script for micro_evtd, which passes the corresponding hexadecimal value for setting different values of your buffalo linkstation. In my case, debian squeeze was installed onto a Buffalo LS-Pro v1.
There are two types of controlling the leds: With “mcon”, the leds are controlled by the linkstation. With “cpu”, you can set the leds by yourself.
To get all possible settings, type in:
root@box:~ microapl option: boot_start boot_end power_off shutdown_wait shutdown_cancel skip_standby delay_standby standby reboot temp_get fan_set_speed [arg] fan_get_speed bz_on [arg] bz_set_freq [arg] bz_melody tempo note ... bz_imhere tempo note ... int_get_switch_status [arg] led_set_bright [arg] led_set_cpu_mcon [arg] led_set_on_off [arg] led_set_blink [arg] led_set_code_error [arg] led_set_code_information [arg] led_set_cpu_mcon [arg] mcon_get_status hdd_set_power [arg] mcon_get_version
As you see, you can do many cool stuff, for example play a melody with bz_melody, or set and get the fan speed. Just try out.
To get the current controlling type of the leds (cpu or mcon), type in:
root@box:~ microapl -a led_set_cpu_mcon #[microapl.led_set_cpu_mcon] led_power=mcon led_info=mcon led_diag=mcon led_link=mcon
If you want to change the diag-led (error, red) by yourself, set the the led_diag value to “cpu”:
root@box:~ microapl -a led_set_cpu_mcon diag root@box:~ microapl -a led_set_cpu_mcon #[microapl.led_set_cpu_mcon] led_power=mcon led_info=mcon led_diag=cpu led_link=mcon
Now the value of led_diag is changed changed to “cpu”. To light up the diag-led, type in:
root@box:~ microapl -a led_set_on_off diag root@box:~ microapl -a led_set_on_off #[microapl.led_set_on_off] led_power=off led_info=off led_diag=on led_link=off
To change the power, link, info and diag led to cpu and light them up, type in:
root@box:~ microapl -a led_set_cpu_mcon power info diag link root@box:~ microapl -a led_set_on_off power info diag link
To change everything back to mcon (default), just use “off” as parameter:
root@box:~ microapl -a led_set_cpu_mcon off
Have fun!

