20 lines
488 B
Plaintext
Executable File
20 lines
488 B
Plaintext
Executable File
#!/usr/bin/with-contenv bashio
|
|
|
|
set -x
|
|
|
|
bashio::log.info "Adding selected devices"
|
|
|
|
if bashio::config.has_value 'usbdevices'; then
|
|
usbdevices=($(bashio::config 'usbdevices'))
|
|
#options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
|
bashio::log.info "Devices: ${usbdevices}"
|
|
for usbdevice in "${usbdevices}"; do
|
|
gurka=$(echo $usbdevice | jq -r '.device')
|
|
bashio::log.info "Set AUTO USE DEVICE ${gurka}"
|
|
echo $gurka
|
|
|
|
# sed 's/.*(\(.*\))/\1/g'
|
|
|
|
done
|
|
fi
|