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%.*})
|
server_serial=$(/usr/bin/vh_server_serial_number ${deviceid%.*})
|
||||||
device2=$(/usr/bin/vh_usb_product_vendor $deviceid)
|
device2=$(/usr/bin/vh_usb_product_vendor $deviceid)
|
||||||
deviceid2="${server_serial}.${device2}"
|
deviceid2="${server_serial}.${device2}"
|
||||||
bashio::log.info "GURKA-${deviceid2}"
|
#bashio::log.info "GURKA-${deviceid2}"
|
||||||
|
|
||||||
if $use; then
|
if $use; then
|
||||||
#bashio::log.info "AUTO USE DEVICE,${deviceid}"
|
#bashio::log.info "AUTO USE DEVICE,${deviceid}"
|
||||||
@@ -33,12 +33,12 @@ if bashio::config.has_value 'usbdevices'; then
|
|||||||
bashio::log.info "AutoShare ${deviceid2} on"
|
bashio::log.info "AutoShare ${deviceid2} on"
|
||||||
/usr/bin/vh_editini AutoShare $deviceid2 1
|
/usr/bin/vh_editini AutoShare $deviceid2 1
|
||||||
else
|
else
|
||||||
if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
#if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
||||||
#bashio::log.info "STOP USING,${deviceid}"
|
#bashio::log.info "STOP USING,${deviceid}"
|
||||||
#/usr/bin/vhclient -t "STOP USING,${deviceid}"
|
#/usr/bin/vhclient -t "STOP USING,${deviceid}"
|
||||||
bashio::log.info "AutoShare ${deviceid2} off"
|
bashio::log.info "AutoShare ${deviceid2} off"
|
||||||
/usr/bin/vh_editini AutoShare $deviceid2 0
|
/usr/bin/vh_editini AutoShare $deviceid2 0
|
||||||
fi
|
#fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user