Notifier is now a member
[gregoa/zavai.git] / hooks / bluetooth
1 #!/bin/sh
2
3 case "$1" in
4         # At the start of zavai
5         status)
6                 if [ "`om bt power`" = 1 ]
7                 then
8                         echo on
9                 else
10                         echo off
11                 fi
12         ;;
13         # When starting bluetooth
14         start)
15                 om bt power 1
16         ;;
17         # When stopping bluetooth
18         stop)
19                 om bt power 0
20         ;;
21         *)
22                 echo "Usage: $0 {start|stop|status}." >&2
23                 exit 1
24         ;;
25 esac
26
27 exit 0