From 51d770e2e8fd01a0c17f358a250e17d1f61e7439 Mon Sep 17 00:00:00 2001 From: Hans Karlinius Date: Thu, 28 Nov 2024 23:58:23 +0100 Subject: [PATCH] test --- vhclient/config.yaml | 4 +++- vhclient/rootfs/etc/s6-overlay/s6-rc.d/test/run | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/vhclient/config.yaml b/vhclient/config.yaml index 7bf34aa..fdd5370 100644 --- a/vhclient/config.yaml +++ b/vhclient/config.yaml @@ -1,5 +1,5 @@ name: VirtualHere Client -version: "0.1.196" +version: "0.1.197" slug: vhclient description: VirtualHere Client arch: @@ -40,12 +40,14 @@ usb: true usbip: true kernel_modules: true options: + updateconfig: true autouse: true autofind: true clientid: '' manualhub: '' usbdevices: [] schema: + updateconfig: bool autouse: bool autofind: bool clientid: str? diff --git a/vhclient/rootfs/etc/s6-overlay/s6-rc.d/test/run b/vhclient/rootfs/etc/s6-overlay/s6-rc.d/test/run index 8115023..917e6f1 100755 --- a/vhclient/rootfs/etc/s6-overlay/s6-rc.d/test/run +++ b/vhclient/rootfs/etc/s6-overlay/s6-rc.d/test/run @@ -13,6 +13,9 @@ set -x #my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array #bashio::config::update 'my_array' "${my_array[@]}" +list=`/usr/bin/vhclient -t "LIST"` +bashio::log.info "${list}" + #options=$(bashio::addon.options) #new_options=$(echo $options | jq .usbdevices += [{ device: 'ONE', use: false }]) #payload=$(bashio::var.json options "^${new_options}")