Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- current=`ifconfig | grep inet6 | sed -n '2p' | awk '{print $2}'`
- pihole=`cat /etc/pihole/setupVars.conf | grep IPV6 | awk -F '=' '{print $2}'`
- if [ "$current" = "$pihole" ]; then
- exit 0
- else
- sed -i s/IPV6_ADDRESS=.*/IPV6_ADDRESS=$current/g /etc/pihole/setupVars.conf;exit 1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement