diff --git a/vhclient/CHANGELOG.md b/vhclient/CHANGELOG.md index e6a11e4..279821f 100644 --- a/vhclient/CHANGELOG.md +++ b/vhclient/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.0 + +- Update handling of setting device to used and not used. + ## 0.2.1 - Added documentation. diff --git a/vhclient/config.yaml b/vhclient/config.yaml index 4b08f9b..9df8700 100644 --- a/vhclient/config.yaml +++ b/vhclient/config.yaml @@ -7,7 +7,7 @@ arch: - aarch64 - amd64 - i386 -url: "https://git.carlscrona.se/haka/home-assistant-addons" +url: "https://github.com/hans99/home-assistant-addons" startup: services host_network: true hassio_api: true diff --git a/vhclient/rootfs/etc/s6-overlay/scripts/vhclient-use-devices b/vhclient/rootfs/etc/s6-overlay/scripts/vhclient-use-devices index 5469c67..5681663 100755 --- a/vhclient/rootfs/etc/s6-overlay/scripts/vhclient-use-devices +++ b/vhclient/rootfs/etc/s6-overlay/scripts/vhclient-use-devices @@ -28,12 +28,16 @@ if bashio::config.has_value 'usbdevices'; then bashio::log.info "GURKA-${deviceid2}" if $use; then - bashio::log.info "AUTO USE DEVICE,${deviceid}" - /usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}" + #bashio::log.info "AUTO USE DEVICE,${deviceid}" + #/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}" + bashio::log.info "AutoShare ${deviceid2} on" + /usr/bin/vh_editini AutoShare $deviceid2 1 else if [[ "${inuse_devices[@]}" =~ "$device" ]]; then - bashio::log.info "STOP USING,${deviceid}" - /usr/bin/vhclient -t "STOP USING,${deviceid}" + #bashio::log.info "STOP USING,${deviceid}" + #/usr/bin/vhclient -t "STOP USING,${deviceid}" + bashio::log.info "AutoShare ${deviceid2} off" + /usr/bin/vh_editini AutoShare $deviceid2 0 fi fi done