Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOJ - split file - relaxed logic to exit cleanly if /etc/vpnc/splitvpn does not exist. #12

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading