dynamic-ip clients?

lizard lizard at furcon.de
Sun Mar 22 23:24:00 CET 2009


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:
[...]



More information about the tinc mailing list