faststart.sh: fixes handling with node names

There was an error, when a node name implies another node name.

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tim Niemeyer 2013-01-29 19:20:28 +01:00
parent b9ce647543
commit 16fd33e7c7
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ wget -T15 "http://mastersword.de/~reddog/fastd/?name=$hostname&port=$port&key=$p
filenames=$(cat /tmp/fastd_${project}_output| grep ^#### | sed -e 's/^####//' | sed -e 's/.conf//g')
for file in $filenames
do
grep -A100 $file /tmp/fastd_${project}_output | grep -v $file | grep -m1 ^### -B100 | grep -v ^### > /etc/fastd/$project/peers/$file
grep -A100 ^####$file.conf$ /tmp/fastd_${project}_output | grep -v ^####$file.conf$ | grep -m1 ^### -B100 | grep -v ^### > /etc/fastd/$project/peers/$file
done
#reload