This commit is contained in:
Hans Karlinius
2024-11-23 22:38:06 +01:00
parent 7ea274e43d
commit b7dc60ffca
18 changed files with 21 additions and 4 deletions
+5
View File
@@ -5,6 +5,11 @@ FROM ${BUILD_FROM}
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
crudini \
# https://www.virtualhere.com/sites/default/files/usbclient/vhclient${BUILD_ARCH} # https://www.virtualhere.com/sites/default/files/usbclient/vhclient${BUILD_ARCH}
RUN \ RUN \
curl -sSLf -o /usr/bin/vhclient \ curl -sSLf -o /usr/bin/vhclient \
+2 -2
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.8" version: "0.1.9"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
@@ -30,7 +30,7 @@ usb: true
usbip: true usbip: true
kernel_modules: true kernel_modules: true
options: options:
clientid: "[HOST]" clientid: "vhclient"
autofind: false autofind: false
schema: schema:
clientid: str? clientid: str?
@@ -1 +0,0 @@
/sbin/modprobe -s vhci-hcd
@@ -0,0 +1,5 @@
#!/command/with-contenv bashio
if bashio::config.has_value 'clientid'; then
bashio::log.info "Set ClientId"
fi
@@ -0,0 +1 @@
oneshot
@@ -1 +1,2 @@
/sbin/modprobe -s vhci-hcd
mount -o remount -t sysfs sysfs /sys mount -o remount -t sysfs sysfs /sys
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-vhclient/run
@@ -1,3 +1,3 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
bashio::log.info "Starting VirtualHere Client as a daemon" bashio::log.info "Starting VirtualHere Client as a daemon"
exec /usr/bin/vhclient -c /config/vhclient.conf -l /dev/stdout exec /usr/bin/vhclient -c /config/vhclient.ini -l /dev/stdout
@@ -0,0 +1 @@
longrun
+3
View File
@@ -2,3 +2,6 @@ configuration:
autofind: autofind:
name: AUTOFIND name: AUTOFIND
description: Turn auto-find off description: Turn auto-find off
clientid:
name: CLIENTID
description: Name presented in Server for in use at