This commit is contained in:
Joe
2017-03-15 08:25:36 -05:00
parent e6c7574fda
commit 5b86bcc125

View File

@@ -1,6 +1,6 @@
#!/bin/bash
oldip=0
(oldip=0
while /bin/true
do ip=$(ifconfig eth0 | grep 'inet addr:' | awk -F '[:]' '{ print $2 }' | awk '{ print $1}')
@@ -11,5 +11,5 @@ echo updated $oldip to $ip
oldip=$ip
fi
sleep 60
done
done ) &