summaryrefslogtreecommitdiff
path: root/units/pig
diff options
Diffstat (limited to 'units/pig')
-rw-r--r--units/pig/jobs.pxu8
-rw-r--r--units/pig/resource.pxu5
2 files changed, 13 insertions, 0 deletions
diff --git a/units/pig/jobs.pxu b/units/pig/jobs.pxu
new file mode 100644
index 00000000..2bbcaa67
--- /dev/null
+++ b/units/pig/jobs.pxu
@@ -0,0 +1,8 @@
+id: monitor/pig-edid
+category_id: com.canonical.plainbox::monitor
+plugin: shell
+estimated_duration: 60
+_summary: Check if the system automatically changes the resolution based on EDID
+requires: pig.hdmi_bridge == 'installed'
+environ: PIG_HOST
+command: edid_cycle.py $PIG_HOST
diff --git a/units/pig/resource.pxu b/units/pig/resource.pxu
new file mode 100644
index 00000000..eb62e22c
--- /dev/null
+++ b/units/pig/resource.pxu
@@ -0,0 +1,5 @@
+id: pig
+plugin: resource
+_summary: Get Pig's capabilities
+environ: PIG_HOST
+command: ssh -q -o 'StrictHostKeyChecking=no' $PIG_HOST /snap/bin/pigbox capabilities