fix for new output format
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
oldip=0
|
oldip=0
|
||||||
|
|
||||||
while /bin/true
|
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 ]
|
if [ $oldip != $ip ]
|
||||||
then url=$(head -n 1 /etc/ddnsurl)
|
then url=$(head -n 1 /etc/ddnsurl)
|
||||||
curl -k "${url}&address=$ip"
|
curl -k "${url}&address=$ip"
|
||||||
|
|||||||
Reference in New Issue
Block a user