View | Details | Raw Unified | Return to bug 110320
Collapse All | Expand All

(-)vpnc (-3 / +6 lines)
Lines 43-51 Link Here
43
		current="$vpnc_conf_dir/$config"
43
		current="$vpnc_conf_dir/$config"
44
44
45
		# Start vpnc.
45
		# Start vpnc.
46
		if ! $command $current $vpnc_flags; then
46
		$command --local-port 0 $current $vpnc_flags
47
			status=$?
47
		status=$?
48
			echo "Running 'vpnc $current $vpnc_flags' failed."
48
		if [ $status != 0 ]; then
49
			# VPNC does not print a newline after an error.
50
			echo
51
			echo "Running 'vpnc $current --local-port 0 $vpnc_flags' failed."
49
			return $status
52
			return $status
50
		fi
53
		fi

Return to bug 110320