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
+2 -2
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.119" version: "0.1.120"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
@@ -43,7 +43,7 @@ options:
autouse: true autouse: true
schema: schema:
autouse: bool autouse: bool
autofind: "bool?" autofind: bool
manualhub: "str?" manualhub: "str?"
stage: experimental stage: experimental
init: false init: false
@@ -16,9 +16,10 @@ fi
if bashio::config.has_value 'autouse'; then if bashio::config.has_value 'autouse'; then
autouse=($(bashio::config 'autouse')) autouse=($(bashio::config 'autouse'))
bashio::log.info "Set AUTOUSE all devices to ${autouse}" bashio::log.info "Set AUTOUSE all devices to ${autouse}"
if [ autouse ]; then if [ ${autouse} ]; then
/usr/bin/vhclient -t "AUTO USE ALL" /usr/bin/vhclient -t "AUTO USE ALL"
else else
/usr/bin/vhclient -t "AUTO USE CLEAR ALL" /usr/bin/vhclient -t "AUTO USE CLEAR ALL"
/usr/bin/vhclient -t "STOP USING ALL LOCAL"
fi fi
fi fi