|
|
|
@ -3,7 +3,8 @@ |
|
|
|
figlet "Mistborn: Installing Wireguard" |
|
|
|
figlet "Mistborn: Installing Wireguard" |
|
|
|
|
|
|
|
|
|
|
|
# if wireguard not in current repositories |
|
|
|
# if wireguard not in current repositories |
|
|
|
if ! $(sudo apt-cache show wireguard > /dev/null 2>&1) ; then |
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then |
|
|
|
|
|
|
|
if ! $(sudo apt-cache show wireguard > /dev/null 2>&1) ; then |
|
|
|
# install PPAs |
|
|
|
# install PPAs |
|
|
|
|
|
|
|
|
|
|
|
echo "Adding Wireguard PPAs" |
|
|
|
echo "Adding Wireguard PPAs" |
|
|
|
@ -25,8 +26,14 @@ if ! $(sudo apt-cache show wireguard > /dev/null 2>&1) ; then |
|
|
|
sudo bash -c 'echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list' |
|
|
|
sudo bash -c 'echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list' |
|
|
|
sudo bash -c "printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable" |
|
|
|
sudo bash -c "printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo "Installing Wireguard" |
|
|
|
echo "Installing Wireguard" |
|
|
|
sudo apt-get update |
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then |
|
|
|
sudo apt-get install -y openresolv wireguard |
|
|
|
sudo apt-get update |
|
|
|
|
|
|
|
sudo apt-get install -y openresolv wireguard |
|
|
|
|
|
|
|
elif [ "$DISTRO" == "arch" ]; then |
|
|
|
|
|
|
|
sudo pacman -Syyy |
|
|
|
|
|
|
|
sudo pacman -S --noconfirm openresolv wireguard-lts wireguard-tools |
|
|
|
|
|
|
|
fi |
|
|
|
|