This commit is contained in:
Hans Karlinius
2024-11-26 17:34:10 +01:00
parent 060ecc6231
commit fe3a577e23
2 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.119"
version: "0.1.120"
slug: vhclient
description: VirtualHere Client
arch:
@@ -43,7 +43,7 @@ options:
autouse: true
schema:
autouse: bool
autofind: "bool?"
autofind: bool
manualhub: "str?"
stage: experimental
init: false

View File

@@ -16,9 +16,10 @@ fi
if bashio::config.has_value 'autouse'; then
autouse=($(bashio::config 'autouse'))
bashio::log.info "Set AUTOUSE all devices to ${autouse}"
if [ autouse ]; then
if [ ${autouse} ]; then
/usr/bin/vhclient -t "AUTO USE ALL"
else
/usr/bin/vhclient -t "AUTO USE CLEAR ALL"
/usr/bin/vhclient -t "STOP USING ALL LOCAL"
fi
fi