Update use device on/off

This commit is contained in:
Hans Karlinius
2025-06-06 22:50:26 +02:00
parent 3c572c5736
commit a26cfde1f7

View File

@@ -32,12 +32,12 @@ if bashio::config.has_value 'usbdevices'; then
# bashio::log.info "AUTO USE DEVICE,${deviceid} - already in use"
# else
bashio::log.info "STOP USING,${deviceid}"
/usr/bin/vhclient -t "STOP USING,${deviceid}"
/usr/bin/vhclient -t "STOP USING,${deviceid}" | sed -z 's/\n/ - /g'
fi
else
if $use; then
bashio::log.info "AUTO USE DEVICE,${deviceid}"
/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}"
/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}" | sed -z 's/\n/ - /g'
# else
# bashio::log.info "STOP USING,${deviceid} - not in use"
fi