summaryrefslogtreecommitdiff
path: root/pm/sleep.d/95led
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-05-18 10:25:01 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-05-18 10:25:01 -0500
commitcc55fcd04883f1462144eb3efdbb1c09fe7d6089 (patch)
tree6835e83dfc1ee3673e59f6bee71ce40159a59810 /pm/sleep.d/95led
parenta95fac932e9f9a921690860bd01f4e5b88b619c2 (diff)
Split the NTP handling code in 90clock into its own code.
While I was at it, reorganized the hooks to conform to the new ordering convention.
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