summaryrefslogtreecommitdiff
path: root/pm/sleep.d
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-02-16 09:57:44 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-02-16 09:57:44 -0600
commit95e8d891352a373d1c1d8e55eebc46ab1d445621 (patch)
tree51261d1cb7fae5e5efab04a30164a4b62c37a97e /pm/sleep.d
parent436ebacce6b142b956d5f94d1bb8b0568343cd2f (diff)
Modify 05led to exit $NA where applicable.
Also get rid of redundant calls to exit.
Diffstat (limited to 'pm/sleep.d')
-rwxr-xr-xpm/sleep.d/05led6
1 files changed, 2 insertions, 4 deletions
diff --git a/pm/sleep.d/05led b/pm/sleep.d/05led
index 5b4f7b6..84bef1b 100755
--- a/pm/sleep.d/05led
+++ b/pm/sleep.d/05led
@@ -1,6 +1,6 @@
#!/bin/sh
-[ -f /proc/acpi/ibm/led ] || exit 1
+[ -f /proc/acpi/ibm/led ] || exit $NA
case "$1" in
hibernate|suspend)
@@ -9,8 +9,6 @@ case "$1" in
thaw|resume)
echo "7 off" >/proc/acpi/ibm/led
;;
- *)
+ *) exit $NA
;;
esac
-
-exit $?