Update use device on/off

This commit is contained in:
Hans Karlinius
2025-06-07 06:02:15 +02:00
parent 648879ce83
commit dba1529139
2 changed files with 2 additions and 2 deletions
@@ -1,4 +1,3 @@
#!/command/with-contenv bashio
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}"
/usr/bin/vhclient -t list | awk '{ if ($1 ~ /\*-->/) { print substr($0, 8, index($0, "(In-use by you)") - 9 ) } }'