summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-02-16 10:00:57 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-02-16 10:00:57 -0600
commit729754f008fc99d401583b493de03b73fedaa2bf (patch)
tree93f2084284c97722aa905e1c5d0414fea6cb11ab
parentb1fdee390a5b5972b0c71752445354f9d3f50816 (diff)
Modify 49bluetooth to exit $NA where applicable.
Also got rid of redundant calls to exit.
-rwxr-xr-xpm/sleep.d/49bluetooth6
1 files changed, 2 insertions, 4 deletions
diff --git a/pm/sleep.d/49bluetooth b/pm/sleep.d/49bluetooth
index 0c72b8f..5fcb04c 100755
--- a/pm/sleep.d/49bluetooth
+++ b/pm/sleep.d/49bluetooth
@@ -2,7 +2,7 @@
. "${PM_FUNCTIONS}"
-[ -f /proc/acpi/ibm/bluetooth ] || exit 1
+[ -f /proc/acpi/ibm/bluetooth ] || exit $NA
suspend_bluetooth()
{
@@ -29,8 +29,6 @@ case "$1" in
thaw|resume)
resume_bluetooth
;;
- *)
+ *) exit $NA
;;
esac
-
-exit $?