Merge branch 'master' of git+ssh://kawomi.com/var/local/git/ddnsupdate
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user