Hi thank you very much for your script. Freedns seems to be a brilliant replacement for dyndns.
I tested it with 4.x and it works with two annotations PPPADDR=`ip addr sh dev ppp0 | grep inet | sed -e "s/inet//;s/peer.*$//;s/^ //"` pressing 6 times space bar between ^ and // if [ "$PPPADDR" != "$DYNADDR" ] ; then "" around the variables are required. I suppose both are mangled by copy & paste function and I hope that they are not getting mixed up again :) cheers Juergen Am Sa. 24. Aug. 2013 19:17 CEST, Bob von Knobloch <b...@vknobloch.de> schrieb: > > > > I'll look at upgrading, but will wait for 5. Do you know if % will be > > able to run on a WRAP platform? > > > I have not tried yet myself. It might need some stripping on the > > modules, but I am pretty confident. > > > cheers > > > Erich > > OK, sounds good, I will wait for 5.x. > I'm still getting no list mail from sourceforge, so am cutting & pasting > here (might break the thread - sorry). > > FWIW here is my script, adjusted for LEAF, it might be useful for anyone > who can no longer use dyndns: > > > The 3 files need to be added to the 'local' list for backup, of course > > Log File: /etc/freedns/ppp.log > Cache File: /etc/freedns/ppp.cache > Main Script: /etc/ppp/ip-up.d/freedns-update > > #!/bin/sh > > > > # Compare dynamic dns cache with external ip address > > > # Get external address > PPPADDR=`ip addr sh dev ppp0 | grep inet | sed -e "s/inet//; > s/peer.*$//; s/^ */ > > > # Get dynamic dns address from cache > if test -f /etc/freedns/ppp.cache ;then > DYNADDR=`cat /etc/freedns/ppp.cache` > else > # Need this to stop "!= expects argument" if cache empty (fresh boot) > DYNADDR="0.0.0.0" > fi > > > if [ $PPPADDR != $DYNADDR ] ; then > > # An update is required > wget http://freedns.afraid.org/dynamic/update.php?xxxxxxxxxxxxxxxxx > # > Freedns hashed key > # If a log is wanted > echo `date` "Updated freedns with IP: " $PPPADDR >> > etc/freedns/ppp.log > rm -f /etc/freedns/ppp.cache > echo $PPPADDR > /etc/freedns/ppp.cache > > # I used this to test, it sends a mail each update > MAILHDR="Brandmauer - FreeDNS Update" > echo -e 'Updated freedns with IP: '$PPPADDR | mail -s > "$MAILHDR" -h <mail address> > fi > > Hope the mail doesn't mangle it too much :=) > > cheers, > > Bob > -- > The Sun is out, the sky is blue, it's time to drive the MR2. > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > ------------------------------------------------------------------------ > leaf-user mailing list: leaf-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-user > Support Request -- http://leaf-project.org/ > > ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/