forked from freifunk-franken/firmware
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:
parent
b9ce647543
commit
16fd33e7c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue