Updater use device on/off
This commit is contained in:
@@ -25,7 +25,7 @@ if bashio::config.has_value 'usbdevices'; then
|
||||
server_serial=$(/usr/bin/vh_server_serial_number ${deviceid%.*})
|
||||
device2=$(/usr/bin/vh_usb_product_vendor $deviceid)
|
||||
deviceid2="${server_serial}.${device2}"
|
||||
bashio::log.info "GURKA-${deviceid2}"
|
||||
#bashio::log.info "GURKA-${deviceid2}"
|
||||
|
||||
if $use; then
|
||||
#bashio::log.info "AUTO USE DEVICE,${deviceid}"
|
||||
@@ -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