7,166
edits
Line 614: | Line 614: | ||
yun_proc.runShellCommand("echo none > /sys/class/leds/ds:green:usb/trigger"); | yun_proc.runShellCommand("echo none > /sys/class/leds/ds:green:usb/trigger"); | ||
} | } | ||
</syntaxhighlight> | |||
カーネルモジュール | |||
標準インストール済み: | |||
ledtrig_timer | |||
ledtrig_default_on | |||
okg で提供されているのも: | |||
<syntaxhighlight lang="text" enclose="div"> | |||
kmod-ledtrig-default-on - 3.3.8-1 - Kernel module that allows LEDs to be initialised in the ON state. | |||
kmod-ledtrig-gpio - 3.3.8-1 - Kernel module that allows LEDs to be controlled by gpio events. | |||
kmod-ledtrig-heartbeat - 3.3.8-1 - LED Heartbeat Trigger | |||
kmod-ledtrig-morse - 3.3.8-1 - Kernel module to show morse coded messages on LEDs. | |||
kmod-ledtrig-netdev - 3.3.8-1 - Kernel module to drive LEDs based on network activity. | |||
kmod-ledtrig-netfilter - 3.3.8-1 - Kernel module to flash LED when a particular packets passing through your machine. For example to create an LED trigger for incoming SSH traffic: iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000 Then attach the new trigger to an LED on your system: echo netfilter-ssh > /sys/class/leds/<ledname>/trigger | |||
kmod-ledtrig-timer - 3.3.8-1 - Kernel module that allows LEDs to be controlled by a programmable timer via sysfs. | |||
kmod-ledtrig-usbdev - 3.3.8-1 - Kernel module to drive LEDs based on USB device presence/activity. | |||
</syntaxhighlight> | </syntaxhighlight> | ||