mirror of https://github.com/jetkvm/kvm.git
Compare commits
4 Commits
15e01b3c4d
...
33f1154e08
Author | SHA1 | Date |
---|---|---|
|
33f1154e08 | |
|
63b3ef0151 | |
|
87f36167f3 | |
|
508ea65fae |
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "JetKVM",
|
"name": "JetKVM Default",
|
||||||
"image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm",
|
"image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/node:1": {
|
"ghcr.io/devcontainers/features/node:1": {
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Exit immediately if a command exits with a non-zero status
|
# Exit immediately if a command exits with a non-zero status
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
4
usb.go
4
usb.go
|
@ -132,7 +132,7 @@ func writeGadgetConfig() error {
|
||||||
}
|
}
|
||||||
err = writeGadgetAttrs(hid0Path, [][]string{
|
err = writeGadgetAttrs(hid0Path, [][]string{
|
||||||
{"protocol", "1"},
|
{"protocol", "1"},
|
||||||
{"subclass", "0"},
|
{"subclass", "1"},
|
||||||
{"report_length", "8"},
|
{"report_length", "8"},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -152,7 +152,7 @@ func writeGadgetConfig() error {
|
||||||
}
|
}
|
||||||
err = writeGadgetAttrs(hid1Path, [][]string{
|
err = writeGadgetAttrs(hid1Path, [][]string{
|
||||||
{"protocol", "2"},
|
{"protocol", "2"},
|
||||||
{"subclass", "0"},
|
{"subclass", "1"},
|
||||||
{"report_length", "6"},
|
{"report_length", "6"},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue