home-assistant / hassbian-scripts

Scripts used in the Hassbian image.
Other
123 stars 98 forks source link

WIP: POC - IPV6 #275

Closed Landrash closed 5 years ago

Landrash commented 5 years ago

Description

Adds display of IPV6 address in addition to IPV4.

Checklist

New function

Landrash commented 5 years ago

Should most likely be converted to using ip addr show instead of ifconfig.

IPV4

ip addr show | grep "scope global" | awk '/inet / {gsub(/\/.*/,"",$2);print $2}'

IPV6

ip addr show | grep "scope link" | awk '/inet6 / {gsub(/\/.*/,"",$2);print $2}'
Landrash commented 5 years ago

Closing since current approach needs to be reworked.