This commit is contained in:
Hans Karlinius
2025-08-09 16:04:51 +02:00
parent d306769770
commit a78164f1f1
2 changed files with 5 additions and 12 deletions

View File

@@ -3,3 +3,8 @@ FROM $BUILD_FROM
# Copy root filesystem
COPY rootfs /
# Install vhclient
ARG BUILD_ARCH
ARG CACHEBUST=1
RUN echo $CACHEBUST && /usr/bin/getvhclient $BUILD_ARCH

View File

@@ -2,15 +2,3 @@
/sbin/modprobe -s vhci-hcd
mount -o remount -t sysfs sysfs /sys
VHCLIENT_BASE_URL=https://www.virtualhere.com/sites/default/files/usbclient
case "$BUILD_ARCH" in \
armhf) export VHCLIENT="vhclientarmhf";; \
aarch64) export VHCLIENT="vhclientarm64";; \
amd64) export VHCLIENT="vhclientx86_64";; \
i386) export VHCLIENT="vhclienti386";; \
*) exit 1;; \
esac
echo "Downloading latest version of client:" $VHCLIENT_BASE_URL/$VHCLIENT
curl -sSLf -o /usr/bin/vhclient $VHCLIENT_BASE_URL/$VHCLIENT
chmod a+x /usr/bin/vhclient