diff options
Diffstat (limited to 'cryptonomic-vpn')
-rwxr-xr-x | cryptonomic-vpn | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/cryptonomic-vpn b/cryptonomic-vpn index 85b0968..0ad0d1a 100755 --- a/cryptonomic-vpn +++ b/cryptonomic-vpn | |||
@@ -160,6 +160,19 @@ main() | |||
160 | exit | 160 | exit |
161 | } | 161 | } |
162 | 162 | ||
163 | test_new_config() | ||
164 | { | ||
165 | NO_ACT ipsec stop | ||
166 | |||
167 | install_stronswan_config | ||
168 | |||
169 | NO_ACT ipsec start | ||
170 | NO_ACT sleep 2 | ||
171 | NO_ACT swanctl -c | ||
172 | NO_ACT ipsec listpubkeys | ||
173 | NO_ACT ipsec up "${REMOTE_NAME}" | ||
174 | } | ||
175 | |||
163 | write_if_successful() | 176 | write_if_successful() |
164 | { | 177 | { |
165 | local out="$1" f | 178 | local out="$1" f |
@@ -353,18 +366,5 @@ install_stronswan_config() | |||
353 | "$REMOTE_PUBLIC_KEY_DEST" | 366 | "$REMOTE_PUBLIC_KEY_DEST" |
354 | } | 367 | } |
355 | 368 | ||
356 | test_new_config() | ||
357 | { | ||
358 | NO_ACT ipsec stop | ||
359 | |||
360 | install_stronswan_config | ||
361 | |||
362 | NO_ACT ipsec start | ||
363 | NO_ACT sleep 2 | ||
364 | NO_ACT swanctl -c | ||
365 | NO_ACT ipsec listpubkeys | ||
366 | NO_ACT ipsec up "${REMOTE_NAME}" | ||
367 | } | ||
368 | |||
369 | main "$@" | 369 | main "$@" |
370 | 370 | ||