aboutsummaryrefslogtreecommitdiff
path: root/rpb-debian-iot
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo.salveti@linaro.org>2016-12-12 21:45:24 -0200
committerRicardo Salveti <ricardo.salveti@linaro.org>2016-12-12 21:52:51 -0200
commit578dc086554306fca0043e8788579a4cd333707b (patch)
tree75dcb695fe21c06521a1efa0e6f362c7a8c81def /rpb-debian-iot
parentde690b99925ae0824bac3b27bab2808406a31280 (diff)
rpb-debian-iot: add init services and scripts for hikey
Local and not part of any package for now, since this will be moved to a different IoT Gateway image later on. Change-Id: I44bd44b26ae932e6a8465fe5b3545a6c91226d57 Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'rpb-debian-iot')
-rw-r--r--rpb-debian-iot/conf/99-bluetooth-6lowpan.rules1
-rw-r--r--rpb-debian-iot/conf/bluetooth_6lowpand.service7
-rw-r--r--rpb-debian-iot/conf/btsetup-hikey.service11
3 files changed, 19 insertions, 0 deletions
diff --git a/rpb-debian-iot/conf/99-bluetooth-6lowpan.rules b/rpb-debian-iot/conf/99-bluetooth-6lowpan.rules
new file mode 100644
index 00000000..17d13c66
--- /dev/null
+++ b/rpb-debian-iot/conf/99-bluetooth-6lowpan.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="bluetooth_6lowpand.service"
diff --git a/rpb-debian-iot/conf/bluetooth_6lowpand.service b/rpb-debian-iot/conf/bluetooth_6lowpand.service
new file mode 100644
index 00000000..00f72596
--- /dev/null
+++ b/rpb-debian-iot/conf/bluetooth_6lowpand.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Bluetooth 6lowpan joiner service
+After=bluetooth.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/bluetooth_6lowpand
diff --git a/rpb-debian-iot/conf/btsetup-hikey.service b/rpb-debian-iot/conf/btsetup-hikey.service
new file mode 100644
index 00000000..b7a2393b
--- /dev/null
+++ b/rpb-debian-iot/conf/btsetup-hikey.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Bluetooth Init Script for HiKey
+After=bluetooth.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/btsetup-hikey.sh
+
+[Install]
+WantedBy=multi-user.target