Update use device on/off

This commit is contained in:
Hans Karlinius
2025-06-06 23:00:42 +02:00
parent 06ea647aaf
commit 648879ce83

View File

@@ -1,3 +1,4 @@
#!/command/with-contenv bashio
/usr/bin/vhclient -t list | awk '{ if ($1 ~ /\*-->/) { print substr($0, 8, index($0, "(In-use by you)") - 9 ) } }'
result=$(/usr/bin/vhclient -t list | awk '{ if ($1 ~ /\*-->/) { print substr($0, 8, index($0, "(In-use by you)") - 9 ) } }')
bashio::log.info "List device in use - ${result}"