Adding support for Kali Linux
This commit is contained in:
parent
36208fa4ca
commit
c824d64eed
10
vpnsetup.sh
10
vpnsetup.sh
@ -53,7 +53,7 @@ if [ -z "$os_type" ]; then
|
|||||||
[ -f /etc/os-release ] && os_type="$(. /etc/os-release && echo "$ID")"
|
[ -f /etc/os-release ] && os_type="$(. /etc/os-release && echo "$ID")"
|
||||||
[ -f /etc/lsb-release ] && os_type="$(. /etc/lsb-release && echo "$DISTRIB_ID")"
|
[ -f /etc/lsb-release ] && os_type="$(. /etc/lsb-release && echo "$DISTRIB_ID")"
|
||||||
fi
|
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."
|
exiterr "This script only supports Ubuntu and Debian."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -144,6 +144,14 @@ apt-get -yq update || exiterr "'apt-get update' failed."
|
|||||||
|
|
||||||
bigecho "Installing packages required for setup..."
|
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 \
|
apt-get -yq install wget dnsutils openssl \
|
||||||
iproute gawk grep sed net-tools || exiterr2
|
iproute gawk grep sed net-tools || exiterr2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user