Created
March 28, 2014 13:39
-
-
Save wkf/9832980 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
r=${reason^^} | |
if [ "$r" = "REBOOT" ] || [ "$r" = "BOUND" ] || [ "$r" = "RENEW" ] && [ "$old_ip_address" != "$new_ip_address" ]; then | |
echo "address=/dev/$new_ip_address" > /etc/dnsmasq.d/dev | |
service dnsmasq restart | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice