summaryrefslogtreecommitdiffstats
path: root/source/ap/pm-utils/49bluetooth-generic
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/pm-utils/49bluetooth-generic')
-rw-r--r--source/ap/pm-utils/49bluetooth-generic15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/ap/pm-utils/49bluetooth-generic b/source/ap/pm-utils/49bluetooth-generic
new file mode 100644
index 000000000..e62790e77
--- /dev/null
+++ b/source/ap/pm-utils/49bluetooth-generic
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+. "${PM_FUNCTIONS}"
+
+case "$1" in
+ hibernate|suspend)
+ rfkill block bluetooth
+ ;;
+ thaw|resume)
+ rfkill unblock bluetooth
+ ;;
+ *)
+ ;;
+esac
+