test
This commit is contained in:
@@ -20,12 +20,12 @@ set -x
|
||||
|
||||
#options=$(bashio::addon.options)
|
||||
#mapfile -t devices < <(/usr/bin/vhclient -t LIST)
|
||||
#mapfile -t devices < <(sed 's/:/ /g' <<< /usr/bin/vhclient -t LIST)
|
||||
#for device in "${devices[@]}"; do
|
||||
mapfile -t devices < <(/usr/bin/vh_list_devices)
|
||||
for device in "${devices[@]}"; do
|
||||
#if [[ "$device" =~ .*"-->".* ]]; then
|
||||
# bashio::log.info "${device}"
|
||||
bashio::log.info "${device}"
|
||||
#fi
|
||||
#done
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/command/with-contenv bashio
|
||||
|
||||
/usr/bin/vhclient -t LIST | grep '-->'
|
||||
/usr/bin/vhclient -t list|awk '{ if ($1 ~ /-->/) { print substr($0, 8, index($0, ")") - 7 ) } }'
|
||||
|
||||
Reference in New Issue
Block a user