Update use device on/off
This commit is contained in:
@@ -31,13 +31,13 @@ if bashio::config.has_value 'usbdevices'; then
|
|||||||
if ! $use; then
|
if ! $use; then
|
||||||
# bashio::log.info "AUTO USE DEVICE,${deviceid} - already in use"
|
# bashio::log.info "AUTO USE DEVICE,${deviceid} - already in use"
|
||||||
# else
|
# else
|
||||||
bashio::log.info "STOP USING,${deviceid}"
|
result=$(/usr/bin/vhclient -t "STOP USING,${deviceid}")
|
||||||
/usr/bin/vhclient -t "STOP USING,${deviceid}" | sed 's/\n/ - /g'
|
bashio::log.info "STOP USING,${deviceid} - ${result}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if $use; then
|
if $use; then
|
||||||
bashio::log.info "AUTO USE DEVICE,${deviceid}"
|
result=$(/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}")
|
||||||
/usr/bin/vhclient -t "AUTO USE DEVICE,${deviceid}" | sed 's/\n/ - /g'
|
bashio::log.info "AUTO USE DEVICE,${deviceid} - ${result}"
|
||||||
# else
|
# else
|
||||||
# bashio::log.info "STOP USING,${deviceid} - not in use"
|
# bashio::log.info "STOP USING,${deviceid} - not in use"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user