udev instead own bycicles

This commit is contained in:
Devaev Maxim
2018-07-07 23:37:38 +00:00
parent f9a69c7467
commit 476018aeb8
10 changed files with 30 additions and 151 deletions

View File

@@ -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/

View File

@@ -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"

View 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"