mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
udev instead own bycicles
This commit is contained in:
@@ -4,7 +4,8 @@ RUN pkg-install \
|
||||
nginx
|
||||
|
||||
COPY stages/pikvm/config.txt /boot/
|
||||
COPY stages/pikvm/99-pikvm.conf /etc/sysctl.d/
|
||||
COPY stages/pikvm/sysctl.conf /etc/sysctl.d/99-pikvm.conf
|
||||
COPY stages/pikvm/udev.rules /etc/udev/rules.d/pikvm.rules
|
||||
COPY stages/pikvm/index.html /srv/http/
|
||||
COPY stages/pikvm/kvmd.yaml /etc/
|
||||
COPY stages/pikvm/nginx.conf /etc/nginx/
|
||||
|
||||
@@ -24,8 +24,7 @@ kvmd:
|
||||
state_poll: 0.1
|
||||
|
||||
msd:
|
||||
# FIXME: It's for laptop lol
|
||||
bind: "1-2:1.0"
|
||||
device: "/dev/kvmd-msd"
|
||||
init_delay: 2.0
|
||||
write_meta: true
|
||||
chunk_size: 8192
|
||||
@@ -46,7 +45,7 @@ kvmd:
|
||||
cmd:
|
||||
- "/usr/bin/mjpg_streamer"
|
||||
- "-i"
|
||||
- "input_uvc.so -d /dev/video0 -e 2 -y -n -r {width}x{height}"
|
||||
- "input_uvc.so -d /dev/kvmd-streamer -e 2 -y -n -r {width}x{height}"
|
||||
- "-o"
|
||||
- "output_http.so -l localhost -p 8082"
|
||||
|
||||
|
||||
4
os/platforms/v1/udev.rules
Normal file
4
os/platforms/v1/udev.rules
Normal file
@@ -0,0 +1,4 @@
|
||||
# https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
|
||||
# https://wiki.archlinux.org/index.php/Udev#Setting_static_device_names
|
||||
KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="1-1.3:1.0", SYMLINK+="kvmd-streamer"
|
||||
KERNEL=="sd[a-z]", SUBSYSTEM=="block", KERNELS=="1-1.4:1.0", SYMLINK+="kvmd-msd"
|
||||
Reference in New Issue
Block a user