This commit is contained in:
Hans Karlinius
2024-12-05 21:11:36 +01:00
parent 975163ad53
commit fc1560f962
3 changed files with 17 additions and 7 deletions

View File

@@ -22,8 +22,8 @@ if bashio::config.has_value 'usbdevices'; then
device=$(echo $usbdevice | jq '.device | tostring')
deviceid=$(echo $device | sed 's/.*(\(.*\)).*/\1/g')
if $use; then
bashio::log.info "USE,${deviceid}"
/usr/bin/vhclient -t "USE,${deviceid}"
bashio::log.info "AUTO USE DEVICE,${deviceid}"
/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}"
else
if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
bashio::log.info "STOP USING,${deviceid}"