Compare commits

...

4 Commits

Author SHA1 Message Date
Josh Arrington 33f1154e08
Merge 87f36167f3 into 63b3ef0151 2025-02-12 15:10:05 +01:00
Andrew Nicholson 63b3ef0151
Enable "Boot Interface Subclass" for keyboard and mouse. (#113)
This is often required for the keyboard/mouse to be recognized in
BIOS/UEFI firmware.
2025-02-12 15:08:03 +01:00
Josh Arrington 87f36167f3 Separate Podman devcontainer config with SELinux support 2025-02-07 05:55:44 +00:00
Josh Arrington 508ea65fae [chore] Ensure dev_deploy is run with bash 2025-02-07 05:55:10 +00:00
4 changed files with 24 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"name": "JetKVM",
"name": "JetKVM Default",
"image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm",
"features": {
"ghcr.io/devcontainers/features/node:1": {

View File

@ -0,0 +1,19 @@
{
"name": "JetKVM Podman",
"image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm",
"features": {
"ghcr.io/devcontainers/features/node:1": {
// Should match what is defined in ui/package.json
"version": "21.1.0"
}
},
"runArgs": [
"--userns=keep-id",
"--security-opt=label=disable",
"--security-opt=label=nested"
],
"containerUser": "vscode",
"containerEnv": {
"HOME": "/home/vscode"
}
}

View File

@ -1,3 +1,5 @@
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e

4
usb.go
View File

@ -132,7 +132,7 @@ func writeGadgetConfig() error {
}
err = writeGadgetAttrs(hid0Path, [][]string{
{"protocol", "1"},
{"subclass", "0"},
{"subclass", "1"},
{"report_length", "8"},
})
if err != nil {
@ -152,7 +152,7 @@ func writeGadgetConfig() error {
}
err = writeGadgetAttrs(hid1Path, [][]string{
{"protocol", "2"},
{"subclass", "0"},
{"subclass", "1"},
{"report_length", "6"},
})
if err != nil {