summaryrefslogtreecommitdiff
path: root/multitech/recipes/bluez
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2012-09-14 14:20:40 -0500
committerJesse Gilles <jgilles@multitech.com>2012-09-18 13:36:56 -0500
commitc573dda027b9f56d67365ca7abde0875af0000aa (patch)
tree0607074f85d12975a17822b31e2acf447e3c990a /multitech/recipes/bluez
parent34aafef2dbe70bd2724a33ce8e68a0cb20b114b5 (diff)
bluez: mt100ecog-pcie-dk: update bluetooth init script
Diffstat (limited to 'multitech/recipes/bluez')
-rwxr-xr-xmultitech/recipes/bluez/files/bluetooth.init14
1 files changed, 9 insertions, 5 deletions
diff --git a/multitech/recipes/bluez/files/bluetooth.init b/multitech/recipes/bluez/files/bluetooth.init
index 411fd6d..41312e2 100755
--- a/multitech/recipes/bluez/files/bluetooth.init
+++ b/multitech/recipes/bluez/files/bluetooth.init
@@ -1,7 +1,11 @@
#!/bin/sh
-echo "Enabling bluetooth..."
-mts-io-sysfs store bt-enabled 1
-sleep 1
-echo "Setting up bluetooth device..."
-hciattach /dev/bt texas
+case "$1" in
+ start)
+ echo "Enabling bluetooth..."
+ mts-io-sysfs store bt-enabled 1
+ sleep 1
+ echo "Setting up bluetooth device..."
+ hciattach /dev/bt texas
+ ;;
+esac