summaryrefslogtreecommitdiff
path: root/pm/sleep.d/05led
blob: b4bb97062bd2c701a37a8ddd627cf9083196fa5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# On an IBM system. make the suspend LED blink.
# TODO: Merge with 95led?  Should be trivial.

[ -f /proc/acpi/ibm/led ] || exit $NA

case "$1" in
	hibernate|suspend)
		echo "7 blink" >/proc/acpi/ibm/led
		;;
	thaw|resume) 
		echo "7 off" >/proc/acpi/ibm/led
		;;
	*) exit $NA
		;;
esac