From c824d64eedf47b69e30bb0dc977293f3de3abf79 Mon Sep 17 00:00:00 2001 From: Herman Duarte Date: Tue, 17 Apr 2018 23:00:53 +0100 Subject: [PATCH] Adding support for Kali Linux --- vpnsetup.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vpnsetup.sh b/vpnsetup.sh index d846c48..7a0603e 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -53,7 +53,7 @@ if [ -z "$os_type" ]; then [ -f /etc/os-release ] && os_type="$(. /etc/os-release && echo "$ID")" [ -f /etc/lsb-release ] && os_type="$(. /etc/lsb-release && echo "$DISTRIB_ID")" fi -if ! printf '%s' "$os_type" | head -n 1 | grep -qiF -e ubuntu -e debian -e raspbian; then +if ! printf '%s' "$os_type" | head -n 1 | grep -qiF -e ubuntu -e debian -e raspbian -e kali; then exiterr "This script only supports Ubuntu and Debian." fi @@ -144,6 +144,14 @@ apt-get -yq update || exiterr "'apt-get update' failed." bigecho "Installing packages required for setup..." +if printf '%s' "$os_type" | head -n 1 | grep -qiF -e kali; then + apt-get -yq install wget dnsutils openssl \ + iproute2 gawk grep sed net-tools || exiterr2 +else + apt-get -yq install wget dnsutils openssl \ + iproute gawk grep sed net-tools || exiterr2 +fi + apt-get -yq install wget dnsutils openssl \ iproute gawk grep sed net-tools || exiterr2