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! _______________________________________________ tinc mailing list [email protected] http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
