This commit is contained in:
Hans Karlinius
2024-11-30 20:24:28 +01:00
parent 0445da4fa2
commit a95979a430
2 changed files with 5 additions and 6 deletions

View File

@@ -18,12 +18,11 @@ if bashio::config.has_value 'usbdevices'; then
deviceid=$(echo $device | sed 's/.*(\(.*\))/\1/g')
bashio::log.info "Use: ${use}"
if $use; then
bashio::log.info "Set AUTO USE DEVICE for ${deviceid}"
bashio::log.info "AUTO USE DEVICE,${deviceid}"
/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}"
else
bashio::log.info "Set STOP USING for ${deviceid}"
bashio::log.info "STOP USING,${deviceid}"
/usr/bin/vhclient -t "STOP USING,${deviceid}"
fi
# sed 's/.*(\(.*\))/\1/g'
done
fi