summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-02-26 00:40:20 +0200
committerMaxim Devaev <[email protected]>2023-02-26 00:40:25 +0200
commit2b728901f538743c5d61c6d0ab397dd8aea43b74 (patch)
treeac011e107b8a99cf19da291c8f64f3e591f3d3bf /kvmd/apps/__init__.py
parent86b97210469e88a4603cb3c0226bce14315b2f94 (diff)
otg: optional components start
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index cbc2400e..971563bb 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -535,7 +535,17 @@ def _get_config_scheme() -> dict:
"meta": Option("/run/kvmd/otg", type=valid_abs_path),
"devices": {
+ "hid": {
+ "keyboard": {
+ "start": Option(True, type=valid_bool),
+ },
+ "mouse": {
+ "start": Option(True, type=valid_bool),
+ },
+ },
+
"msd": {
+ "start": Option(True, type=valid_bool),
"default": {
"stall": Option(False, type=valid_bool),
"cdrom": Option(True, type=valid_bool),
@@ -547,10 +557,12 @@ def _get_config_scheme() -> dict:
"serial": {
"enabled": Option(False, type=valid_bool),
+ "start": Option(True, type=valid_bool),
},
"ethernet": {
"enabled": Option(False, type=valid_bool),
+ "start": Option(True, type=valid_bool),
"driver": Option("ecm", type=valid_otg_ethernet),
"host_mac": Option("", type=valid_mac, if_empty=""),
"kvm_mac": Option("", type=valid_mac, if_empty=""),
@@ -558,6 +570,7 @@ def _get_config_scheme() -> dict:
"drives": {
"enabled": Option(False, type=valid_bool),
+ "start": Option(True, type=valid_bool),
"count": Option(1, type=valid_int_f1),
"default": {
"stall": Option(False, type=valid_bool),