test
This commit is contained in:
+13
-2
@@ -4,8 +4,19 @@ FROM $BUILD_FROM
|
|||||||
# Copy root filesystem
|
# Copy root filesystem
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
# https://www.virtualhere.com/sites/default/files/usbclient/vhclient${BUILD_ARCH}
|
RUN if [ "$BUILD_ARCH" = "armhf" ]; then \
|
||||||
|
VHCLIENT_ARCH="armhf"; \
|
||||||
|
elif [ "$BUILD_ARCH" = "aarch64" ]; then \
|
||||||
|
VHCLIENT_ARCH="arm64"; \
|
||||||
|
elif [ "$BUILD_ARCH" = "amd64" ]; then \
|
||||||
|
VHCLIENT_ARCH="x86_64"; \
|
||||||
|
elif [ "$BUILD_ARCH" = "i386" ]; then \
|
||||||
|
VHCLIENT_ARCH="i386"; \
|
||||||
|
else \
|
||||||
|
echo "No vhclient exists for build arch"; \
|
||||||
|
fi
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
curl -sSLf -o /usr/bin/vhclient \
|
curl -sSLf -o /usr/bin/vhclient \
|
||||||
"https://www.virtualhere.com/sites/default/files/usbclient/vhclientx86_64"
|
"https://www.virtualhere.com/sites/default/files/usbclient/vhclient${VHCLIENT_ARCH}"
|
||||||
RUN chmod a+x /usr/bin/vhclient
|
RUN chmod a+x /usr/bin/vhclient
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.362"
|
version: "0.1.363"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
- armhf
|
- armhf
|
||||||
- armv7
|
|
||||||
- aarch64
|
- aarch64
|
||||||
- amd64
|
- amd64
|
||||||
- i386
|
- i386
|
||||||
@@ -23,7 +22,7 @@ privileged:
|
|||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
apparmor: false
|
apparmor: false
|
||||||
map:
|
map:
|
||||||
- type: addon_config
|
- type: homeassistant_config
|
||||||
read_only: false
|
read_only: false
|
||||||
path: /config
|
path: /config
|
||||||
usb: true
|
usb: true
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ if bashio::config.has_value 'usbdevices'; then
|
|||||||
device=$(echo $usbdevice | jq '.device | tostring')
|
device=$(echo $usbdevice | jq '.device | tostring')
|
||||||
deviceid=$(echo $device | sed 's/.*(\(.*\)).*/\1/g')
|
deviceid=$(echo $device | sed 's/.*(\(.*\)).*/\1/g')
|
||||||
if $use; then
|
if $use; then
|
||||||
bashio::log.info "USE,${deviceid}"
|
bashio::log.info "AUTO USE DEVICE,${deviceid}"
|
||||||
/usr/bin/vhclient -t "USE,${deviceid}"
|
/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}"
|
||||||
else
|
else
|
||||||
if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
||||||
bashio::log.info "STOP USING,${deviceid}"
|
bashio::log.info "STOP USING,${deviceid}"
|
||||||
|
|||||||
Reference in New Issue
Block a user