Files
home-assistant-addons/vhclient/rootfs/etc/s6-overlay/scripts/init-vhclient
T
Hans Karlinius d306769770 test
2025-08-09 10:01:17 +02:00

17 lines
562 B
Plaintext
Executable File

#!/command/with-contenv bashio
/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