mirror of
https://github.com/hwdsl2/setup-ipsec-vpn.git
synced 2026-05-17 08:05:45 +03:00
Cleanup
This commit is contained in:
@@ -79,19 +79,6 @@ abort_and_exit() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
confirm_or_abort() {
|
||||
printf '%s' "$1"
|
||||
read -r response
|
||||
case $response in
|
||||
[yY][eE][sS]|[yY])
|
||||
echo
|
||||
;;
|
||||
*)
|
||||
abort_and_exit
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
check_cert_exists() {
|
||||
certutil -L -d sql:/etc/ipsec.d -n "$1" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
@@ -175,5 +175,3 @@ ikev2onlymode() {
|
||||
|
||||
## Defer until we have the complete script
|
||||
ikev2onlymode "$@"
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user