aboutsummaryrefslogtreecommitdiff
path: root/security/vpnc/files
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2010-03-30 16:36:59 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2010-03-30 16:36:59 +0000
commit155a9e7669308c79511d00b61d826b4d4f48b9d0 (patch)
treed69165eba82864a01b17732d5b5f95bf1c6a9890 /security/vpnc/files
parent5f1732d1cb7ea883d7ab4a218e2240868b2dc777 (diff)
downloadports-155a9e7669308c79511d00b61d826b4d4f48b9d0.tar.gz
ports-155a9e7669308c79511d00b61d826b4d4f48b9d0.zip
Notes
Diffstat (limited to 'security/vpnc/files')
-rw-r--r--security/vpnc/files/vpnc.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/vpnc/files/vpnc.in b/security/vpnc/files/vpnc.in
index 228374ac6529..7c02909915f0 100644
--- a/security/vpnc/files/vpnc.in
+++ b/security/vpnc/files/vpnc.in
@@ -44,8 +44,9 @@ vpnc_start() {
current="$vpnc_conf_dir/$config"
# Start vpnc.
- if ! $command --local-port 0 $current $vpnc_flags; then
- status=$?
+ $command --local-port 0 $current $vpnc_flags
+ status=$?
+ if [ $status -ne 0 ]; then
# VPNC does not print a newline after an error.
echo
echo "Running 'vpnc $current --local-port 0 $vpnc_flags' failed."