Merge branch 'master' of git+ssh://kawomi.com/var/local/git/ddnsupdate

This commit is contained in:
Joe
2017-03-15 08:26:19 -05:00

View File

@@ -3,7 +3,7 @@
(oldip=0
while /bin/true
do ip=$(ifconfig eth0 | grep 'inet addr:' | awk -F '[:]' '{ print $2 }' | awk '{ print $1}')
do ip=$(ifconfig wlp2s0 | grep 'inet ' | awk '{ print $2 }' | awk '{ print $1}')
if [ $oldip != $ip ]
then url=$(head -n 1 /etc/ddnsurl)
curl -k "${url}&address=$ip"