1
0
mirror of synced 2024-11-26 14:56:08 +03:00

Adding support for Kali Linux

This commit is contained in:
Herman Duarte 2018-04-17 23:00:53 +01:00
parent 36208fa4ca
commit c824d64eed

View File

@ -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