Skip to content

Commit

Permalink
Merge pull request #12 from bechampion/split
Browse files Browse the repository at this point in the history
NOJ - split file - relaxed logic to exit cleanly if /etc/vpnc/splitvpn does not exist.
  • Loading branch information
gr211 authored Jun 27, 2024
2 parents c6303ba + 8d54dff commit cf29879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-aux/scripts/split.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
CONFIG_FILE=/etc/vpnc/splitvpn

if [[ ! -f $CONFIG_FILE ]]; then
echo "$CONFIG_FILE does exist. Please create it with the following content:"
echo "$CONFIG_FILE does exist. Split tunneling will not be active. Please create it with the following content if you want to activate:"
cat << EOF
# beginning
Expand All @@ -17,7 +17,7 @@ You can determine those values with
ip -json r get 1.1.1.1 | jq '.[]| "MAIN_DEV=\"\(.dev)\" \nGW=\"\(.gateway)\""' -r
EOF
exit 1
exit 0
fi

. $CONFIG_FILE
Expand Down

0 comments on commit cf29879

Please sign in to comment.