diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2018-12-20 14:37:37 +0000 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2018-12-21 17:21:48 +0000 |
commit | 34163f4435a46984f6193c676928fe842f139362 (patch) | |
tree | cad37ffd3cad5aefca8e4b3ad2a40f1e4b3f8a51 /units/bluetooth | |
parent | f60cac039edfb1337857878a96b5f9dd4450bc94 (diff) |
bluetooth: create bluetooth detect job
Diffstat (limited to 'units/bluetooth')
-rw-r--r-- | units/bluetooth/jobs.pxu | 13 | ||||
-rw-r--r-- | units/bluetooth/manifest.pxu | 5 |
2 files changed, 18 insertions, 0 deletions
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,4 +1,9 @@ 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 value-type: bool |