|
2010-01-20
, 11:07
|
Posts: 27 |
Thanked: 21 times |
Joined on Jan 2010
|
#2
|
I tested it but it only works sometimes. I cannot figure out when (or if) this script will not be executed even if there is a change in the network interface but I can see in the log file that not all my network interface changes are tracked.
It would be really nice if someone could confirm this.
Thanks in advance.
|
2010-01-21
, 09:15
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#3
|
|
2010-01-22
, 00:11
|
Posts: 27 |
Thanked: 21 times |
Joined on Jan 2010
|
#4
|
#!/bin/sh # # $Id: ipcheck 994 2010-01-18 14:58:51Z lth $ # # . /etc/ipcheckrc . /home/user/.ipcheckrc || true if [ -z $DYNDNS_HOSTNAME ]; then exit 0 fi if [ ! -f /opt/ipcheck/ipcheck.dat ]; then MAKEDAT=--makedat fi cd /opt/ipcheck ./ipcheck.py $MAKEDAT -l -r checkip.dyndns.org:8245 $DYNDNS_USER $DYNDNS_PASSWORD $DYNDNS_HOSTNAME
The Following User Says Thank You to lbthomsen For This Useful Post: | ||
|
2010-01-22
, 08:43
|
Posts: 58 |
Thanked: 7 times |
Joined on Nov 2009
@ Hilversum
|
#5
|
|
2010-01-22
, 09:51
|
Posts: 27 |
Thanked: 21 times |
Joined on Jan 2010
|
#6
|
I want to update my DynDNS account everytime the used network interface changes. I created a script in /etc/network/if-up.d/dyndns like this (first idea from http://talk.maemo.org/showthread.php?t=34898&page=2):
It would be really nice if someone could confirm this.
Thanks in advance.
PS: You don't have to use DynDNS for this, you can also test it with