From 34163f4435a46984f6193c676928fe842f139362 Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Thu, 20 Dec 2018 14:37:37 +0000 Subject: bluetooth: create bluetooth detect job --- units/bluetooth/jobs.pxu | 13 +++++++++++++ units/bluetooth/manifest.pxu | 5 +++++ 2 files changed, 18 insertions(+) (limited to 'units/bluetooth') diff --git a/units/bluetooth/jobs.pxu b/units/bluetooth/jobs.pxu index 7ab5243..3b71e70 100644 --- a/units/bluetooth/jobs.pxu +++ b/units/bluetooth/jobs.pxu @@ -1,3 +1,16 @@ +unit: job +id: bluetooth/detect +category_id: com.canonical.plainbox::bluetooth +_summary: Make sure at least one bluetooth device is detected +plugin: shell +command: + bt_list_adapters.py +estimated_duration: 2s +flags: preserve-locale +requires: manifest.has_bt_adapter +imports: from com.canonical.plainbox import manifest + + plugin: shell category_id: com.canonical.plainbox::bluetooth id: bluetooth/detect-output diff --git a/units/bluetooth/manifest.pxu b/units/bluetooth/manifest.pxu index ebf5874..576f7a8 100644 --- a/units/bluetooth/manifest.pxu +++ b/units/bluetooth/manifest.pxu @@ -1,3 +1,8 @@ +unit: manifest entry +id: has_bt_adapter +_name: A Bluetooth Adapter +value-type: bool + unit: manifest entry id: has_bt_smart _name: Bluetooth Smart (4.0 or later) Support -- cgit v1.2.3