stevejenkins / pihole-utils

Checks the Pi-hole server's current IPv6 address and updates the IPv6 address configured in /etc/pihole/setupVars.conf if necessary.
MIT License
40 stars 7 forks source link

ifconfig is not handled properly by grep and sed #1

Closed pe0mot closed 5 years ago

pe0mot commented 6 years ago

ifconfig is maybe different on my Raspberry after installing unbound: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.178.6 netmask 255.255.255.0 broadcast 192.168.178.255 inet6 fd00::936d:13b4:b529:5378 prefixlen 64 scopeid 0x0'<'global '>' inet6 fe80::c2d5:b284:35bd:915a prefixlen 64 scopeid 0x20 ether b8:27:eb:36:ff:c7 txqueuelen 1000 (Ethernet) RX packets 77835 bytes 40766066 (38.8 MiB) RX errors 0 dropped 47 overruns 0 frame 0 TX packets 83549 bytes 37269794 (35.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

pe0mot commented 6 years ago

Sorry, pasting the brackets gives some funny effects.