From 600703c222a6354f6ac668d2219c4165257735e5 Mon Sep 17 00:00:00 2001 From: randomshell Date: Wed, 1 Jul 2020 18:33:00 +0000 Subject: [PATCH] Add initialCheck() --- wireguard-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wireguard-install.sh b/wireguard-install.sh index ea9ba5a..9bcd72b 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -41,6 +41,12 @@ function checkOS() { fi } +function initialCheck() { + isRoot + checkVirt + checkOS +} + function addClient() { # Load params source /etc/wireguard/params