dynamic-ip clients?

lizard lizard at furcon.de
Mon Mar 23 12:05:07 CET 2009


erf - again, this time with complete paste :)

#!/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 = $REMOTEADDRESS #dynamic" >> $file.new
mv $file.new $file


lizard wrote:
> NICE HACK!
> completed the script so only the last ip is in config
> thanks!




More information about the tinc mailing list