summaryrefslogtreecommitdiff
path: root/pm/sleep.d/95led
diff options
context:
space:
mode:
Diffstat (limited to 'pm/sleep.d/95led')
-rwxr-xr-xpm/sleep.d/95led13
1 files changed, 7 insertions, 6 deletions
diff --git a/pm/sleep.d/95led b/pm/sleep.d/95led
index 253f0b6..b4bb970 100755
--- a/pm/sleep.d/95led
+++ b/pm/sleep.d/95led
@@ -1,15 +1,16 @@
#!/bin/sh
-# IBM specific hook to handle the suspend LED.
-# TODO: Merge with 05led.
+# 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
- thaw|resume)
+ hibernate|suspend)
echo "7 blink" >/proc/acpi/ibm/led
;;
- *)
+ thaw|resume)
+ echo "7 off" >/proc/acpi/ibm/led
+ ;;
+ *) exit $NA
;;
esac
-
-exit $NA