Update use device on/off
This commit is contained in:
@@ -33,12 +33,12 @@ if bashio::config.has_value 'usbdevices'; then
|
||||
bashio::log.info "AutoShare ${deviceid2} on"
|
||||
/usr/bin/vh_editini AutoShare $deviceid2 1
|
||||
else
|
||||
if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
||||
#if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
||||
bashio::log.info "STOP USING,${deviceid}"
|
||||
/usr/bin/vhclient -t "STOP USING,${deviceid}"
|
||||
#bashio::log.info "AutoShare ${deviceid2} off"
|
||||
#/usr/bin/vh_editini AutoShare $deviceid2 0
|
||||
fi
|
||||
#fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user