NICE HACK! completed the script so only the last ip is in config thanks! #!/bin/sh file=/etc/tinc/$NETNAME/hosts/$NODE echo $file grep -Fq "#dynamic" $file || exit 0 grep -Fq "Address = $REMOTEADDRESS" $file && exit 0 grep -Fv "#dynamic" $file > $file.new echo "Address = $REMOTEADDR
On Sun, 2009-03-22 at 21:07 +0100, Guus Sliepen wrote: > Well, you could create a host-up script (in the same directory as the tinc-up > script) containing the following: [...] _______________________________________________ tinc mailing list [email protected] http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
