This commit is contained in:
Hans Karlinius
2024-11-29 14:58:10 +01:00
parent 79b77f11b6
commit bddddd1127
3 changed files with 6 additions and 6 deletions
@@ -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 -1
View File
@@ -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 ) } }'