test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user