test
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.113"
|
version: "0.1.114"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
@@ -40,9 +40,13 @@ usb: true
|
|||||||
usbip: true
|
usbip: true
|
||||||
kernel_modules: true
|
kernel_modules: true
|
||||||
options:
|
options:
|
||||||
autofind: false
|
autouse: true
|
||||||
|
autofind: true
|
||||||
|
hub:
|
||||||
schema:
|
schema:
|
||||||
|
autouse: bool
|
||||||
autofind: bool
|
autofind: bool
|
||||||
|
hub: str?
|
||||||
stage: experimental
|
stage: experimental
|
||||||
init: false
|
init: false
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,24 @@
|
|||||||
#!/command/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
|
|
||||||
#if bashio::config.has_value 'clientid'; then
|
if bashio::config.has_value 'autouse'; then
|
||||||
# clientid=($(bashio::config 'clientid'))
|
autouse=($(bashio::config 'autouse'))
|
||||||
# bashio::log.info "Set ClientId to ${clientid}"
|
bashio::log.info "Set AUTOUSE all devices to ${autouse}"
|
||||||
#fi
|
if autouse; then
|
||||||
|
/usr/bin/vhclient -t "AUTO USE ALL"
|
||||||
|
else
|
||||||
|
/usr/bin/vhclient -t "AUTO USE CLEAR ALL"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if bashio::config.has_value 'autofind'; then
|
if bashio::config.has_value 'autofind'; then
|
||||||
autofind=($(bashio::config 'autofind'))
|
autofind=($(bashio::config 'autofind'))
|
||||||
bashio::log.info "Set AUTOFIND ${autofind}"
|
bashio::log.info "Set AUTOFIND hub to ${autofind}"
|
||||||
|
# TODO: check before toggle
|
||||||
|
/usr/bin/vhclient -t "AUTOFIND"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#TEST
|
if bashio::config.has_value 'hub'; then
|
||||||
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
|
hub=($(bashio::config 'hub'))
|
||||||
#my_array=($(bashio::config 'usbdevices'))
|
bashio::log.info "Set HUB to ${hub}"
|
||||||
#my_array+=('one') # Add a new item to the array
|
/usr/bin/vhclient -t "MANUAL HUB ADD,${hub}"
|
||||||
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
|
fi
|
||||||
#bashio::config::update 'usbdevices' "${my_array[@]}"
|
|
||||||
#bashio::log.info "${my_array[@]}"
|
|
||||||
#bashio::config::update 'usbdevices' "${my_array[@]}"
|
|
||||||
#bashio::log.info "${my_array[@]}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user