Update use device on/off

This commit is contained in:
Hans Karlinius
2025-06-06 18:53:09 +02:00
parent 18cd680870
commit e6412a3bff

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
#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
fi
done
fi