From fa9f2794cf5089e368096d8c03be754876990a1b Mon Sep 17 00:00:00 2001 From: Enrico Zini Date: Tue, 9 Mar 2010 23:24:30 +0100 Subject: [PATCH] Added Bluetooth hook --- hooks/bluetooth | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 hooks/bluetooth diff --git a/hooks/bluetooth b/hooks/bluetooth new file mode 100755 index 0000000..fd404d2 --- /dev/null +++ b/hooks/bluetooth @@ -0,0 +1,27 @@ +#!/bin/sh + +case "$1" in + # At the start of zavai + status) + if [ "`om bt power`" = 1 ] + then + echo on + else + echo off + fi + ;; + # When starting bluetooth + start) + om bt power 1 + ;; + # When stopping bluetooth + stop) + om bt power 0 + ;; + *) + echo "Usage: $0 {start|stop|status}." >&2 + exit 1 + ;; +esac + +exit 0 -- 2.39.5