Update use device on/off

This commit is contained in:
Hans Karlinius
2025-06-06 18:50:33 +02:00
parent e6897d60fe
commit 18cd680870

View File

@@ -33,12 +33,12 @@ if bashio::config.has_value 'usbdevices'; then
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 "AutoShare ${deviceid2} off"
/usr/bin/vh_editini AutoShare $deviceid2 0
#fi
if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
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
fi