Update use device on/off
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user