test
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.116"
|
version: "0.1.117"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
@@ -42,11 +42,11 @@ kernel_modules: true
|
|||||||
options:
|
options:
|
||||||
autouse: true
|
autouse: true
|
||||||
autofind: true
|
autofind: true
|
||||||
hub:
|
manualhub:
|
||||||
schema:
|
schema:
|
||||||
autouse: bool
|
autouse: bool
|
||||||
autofind: bool
|
autofind: bool
|
||||||
hub: "str?"
|
manualhub: "str?"
|
||||||
stage: experimental
|
stage: experimental
|
||||||
init: false
|
init: false
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,18 @@
|
|||||||
#!/command/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
|
|
||||||
|
if bashio::config.has_value 'autofind'; then
|
||||||
|
autofind=($(bashio::config 'autofind'))
|
||||||
|
bashio::log.info "Set AUTOFIND hub to ${autofind}"
|
||||||
|
# TODO: check before toggle
|
||||||
|
/usr/bin/vhclient -t "AUTOFIND"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if bashio::config.has_value 'manualhub'; then
|
||||||
|
manualhub=($(bashio::config 'manualhub'))
|
||||||
|
bashio::log.info "Set HUB to ${manualhub}"
|
||||||
|
/usr/bin/vhclient -t "MANUAL HUB ADD,${manualhub}"
|
||||||
|
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}"
|
||||||
@@ -9,16 +22,3 @@ if bashio::config.has_value 'autouse'; then
|
|||||||
/usr/bin/vhclient -t "AUTO USE CLEAR ALL"
|
/usr/bin/vhclient -t "AUTO USE CLEAR ALL"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if bashio::config.has_value 'autofind'; then
|
|
||||||
autofind=($(bashio::config 'autofind'))
|
|
||||||
bashio::log.info "Set AUTOFIND hub to ${autofind}"
|
|
||||||
# TODO: check before toggle
|
|
||||||
/usr/bin/vhclient -t "AUTOFIND"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if bashio::config.has_value 'hub'; then
|
|
||||||
hub=($(bashio::config 'hub'))
|
|
||||||
bashio::log.info "Set HUB to ${hub}"
|
|
||||||
/usr/bin/vhclient -t "MANUAL HUB ADD,${hub}"
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user