diff options
author | Maxim Devaev <[email protected]> | 2021-10-24 12:00:45 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-10-24 12:00:45 +0300 |
commit | 434acc5de54b000a85b88decd1776daee914c9c0 (patch) | |
tree | 1746be1f7fac30f5dceaf6677d54840f1c660bb6 /testenv | |
parent | 278b4b335c4440196fa7686fade3cbd56b3b0d8c (diff) |
pikvm/pikvm#457: custom commands driver
Diffstat (limited to 'testenv')
-rw-r--r-- | testenv/v2-hdmi-rpi4.override.yaml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testenv/v2-hdmi-rpi4.override.yaml b/testenv/v2-hdmi-rpi4.override.yaml index 85cbd4f9..e79d86d3 100644 --- a/testenv/v2-hdmi-rpi4.override.yaml +++ b/testenv/v2-hdmi-rpi4.override.yaml @@ -44,6 +44,12 @@ kvmd: relay: type: hidrelay device: /dev/hidraw0 + cmd1: + type: cmd + cmd: [/bin/sleep, 5] + cmd2: + type: cmd + cmd: [/bin/ls, -l] scheme: __v3_usb_breaker__: @@ -86,6 +92,18 @@ kvmd: delay: 2 max_delay: 5 + cmd1: + pin: 0 + mode: output + driver: cmd1 + switch: false + + cmd2: + pin: 0 + mode: output + driver: cmd2 + switch: false + view: header: title: Switches @@ -99,6 +117,10 @@ kvmd: - [] - ["#Relay #1:", "relay1|confirm|Boop 0.1"] - ["#Relay #2:", "relay2|Boop 2.0"] + - [] + - ["#Commands"] + - ["#Cmd #1:", "cmd1|confirm|Run 'sleep 5'"] + - ["#Cmd #2:", "cmd2|Run 'ls -l'"] vnc: keymap: /usr/share/kvmd/keymaps/ru |