summaryrefslogtreecommitdiff
path: root/etc/opennhrp-script
diff options
context:
space:
mode:
Diffstat (limited to 'etc/opennhrp-script')
-rwxr-xr-xetc/opennhrp-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/opennhrp-script b/etc/opennhrp-script
index 7a28e06..f21c3a9 100755
--- a/etc/opennhrp-script
+++ b/etc/opennhrp-script
@@ -24,7 +24,7 @@ peer-up)
echo "Create link from $NHRP_SRCADDR ($NHRP_SRCNBMA) to $NHRP_DESTADDR ($NHRP_DESTNBMA)"
if [[ ( ${_type} == "spoke" ) && ( -e ${_strongswan_pid} ) ]]; then
if grep "${NHRP_SRCADDR}" "${_nhrp_ipsec}"; then
- swanctl -t -S $NHRP_SRCNBMA -R $NHRP_DESTNBMA /dev/null 2>&1
+ swanctl -t -S $NHRP_SRCNBMA -R $NHRP_DESTNBMA > /dev/null 2>&1
swanctl -i -c dmvpn -S $NHRP_SRCNBMA -R $NHRP_DESTNBMA || exit 1
fi
fi