Skip to content
Snippets Groups Projects
Commit 74ccf5b2 authored by Tim Niemeyer's avatar Tim Niemeyer
Browse files

bsp/default/fastdstart.sh.tpl: update to fastd v14


Signed-off-by: default avatarTim Niemeyer <tim.niemeyer@mastersword.de>
parent d1185668
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ if ping -w5 -c3 "$test_internet_host1" &>/dev/null || ...@@ -56,6 +56,7 @@ if ping -w5 -c3 "$test_internet_host1" &>/dev/null ||
echo "mtu 1426;" >> /etc/fastd/${project}/${project}.conf echo "mtu 1426;" >> /etc/fastd/${project}/${project}.conf
echo "secret \"$secret\";" >> /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 "on up \"/etc/fastd/${project}/up.sh\";" >> /etc/fastd/${project}/${project}.conf
echo "secure handshakes no;" >> /etc/fastd/${project}/${project}.conf
fi fi
if [ ! -d /tmp/fastd_${project}_peers ]; then if [ ! -d /tmp/fastd_${project}_peers ]; then
...@@ -77,7 +78,8 @@ if ping -w5 -c3 "$test_internet_host1" &>/dev/null || ...@@ -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) filenames=$(awk '/^####/ { gsub(/^####/, "", $0); gsub(/.conf/, "", $0); print $0; }' /tmp/fastd_${project}_output)
for file in $filenames; do 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 done
#reload #reload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment