From 16fd33e7c755cd16a56e10884b835ecbe9db85c8 Mon Sep 17 00:00:00 2001 From: Tim Niemeyer Date: Tue, 29 Jan 2013 19:20:28 +0100 Subject: [PATCH] faststart.sh: fixes handling with node names There was an error, when a node name implies another node name. Signed-off-by: Tim Niemeyer --- bsp/default/root_file_system/etc/fastdstart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/default/root_file_system/etc/fastdstart.sh b/bsp/default/root_file_system/etc/fastdstart.sh index 5e7018bb..2bfed42a 100755 --- a/bsp/default/root_file_system/etc/fastdstart.sh +++ b/bsp/default/root_file_system/etc/fastdstart.sh @@ -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