From 74ccf5b24ac89e4afe2455869a7e31663192b043 Mon Sep 17 00:00:00 2001 From: Tim Niemeyer Date: Fri, 15 Aug 2014 19:29:00 +0200 Subject: [PATCH] bsp/default/fastdstart.sh.tpl: update to fastd v14 Signed-off-by: Tim Niemeyer --- bsp/default/root_file_system/etc/fastdstart.sh.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bsp/default/root_file_system/etc/fastdstart.sh.tpl b/bsp/default/root_file_system/etc/fastdstart.sh.tpl index a717fff..46b5d07 100755 --- a/bsp/default/root_file_system/etc/fastdstart.sh.tpl +++ b/bsp/default/root_file_system/etc/fastdstart.sh.tpl @@ -56,6 +56,7 @@ if ping -w5 -c3 "$test_internet_host1" &>/dev/null || echo "mtu 1426;" >> /etc/fastd/${project}/${project}.conf echo "secret \"$secret\";" >> /etc/fastd/${project}/${project}.conf echo "on up \"/etc/fastd/${project}/up.sh\";" >> /etc/fastd/${project}/${project}.conf + echo "secure handshakes no;" >> /etc/fastd/${project}/${project}.conf fi if [ ! -d /tmp/fastd_${project}_peers ]; then @@ -77,7 +78,8 @@ if ping -w5 -c3 "$test_internet_host1" &>/dev/null || filenames=$(awk '/^####/ { gsub(/^####/, "", $0); gsub(/.conf/, "", $0); print $0; }' /tmp/fastd_${project}_output) for file in $filenames; do - awk "{ if(a) print }; /^####$file.conf$/{a=1}; /^$/{a=0};" /tmp/fastd_${project}_output > /etc/fastd/$project/peers/$file + awk "{ if(a) print }; /^####$file.conf$/{a=1}; /^$/{a=0};" /tmp/fastd_${project}_output | sed 's/ float;/;/g' > /etc/fastd/$project/peers/$file + echo 'float yes;' >> /etc/fastd/$project/peers/$file done #reload