diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2010-03-30 16:36:59 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2010-03-30 16:36:59 +0000 |
commit | 155a9e7669308c79511d00b61d826b4d4f48b9d0 (patch) | |
tree | d69165eba82864a01b17732d5b5f95bf1c6a9890 /security/vpnc/files | |
parent | 5f1732d1cb7ea883d7ab4a218e2240868b2dc777 (diff) | |
download | ports-155a9e7669308c79511d00b61d826b4d4f48b9d0.tar.gz ports-155a9e7669308c79511d00b61d826b4d4f48b9d0.zip |
Notes
Diffstat (limited to 'security/vpnc/files')
-rw-r--r-- | security/vpnc/files/vpnc.in | 5 |
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." |