Skip to content

Commit

Permalink
NOJ - split file - relaxed logic to exit cleanly if /etc/vpnc/splitvp…
Browse files Browse the repository at this point in the history
…n does not exist.
  • Loading branch information
gr211 committed Jun 27, 2024
1 parent c6303ba commit 8d54dff
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 8d54dff

Please sign in to comment.