|
|
|
@ -3,6 +3,7 @@ |
|
|
|
figlet "Mistborn: Installing Wireguard" |
|
|
|
figlet "Mistborn: Installing Wireguard" |
|
|
|
|
|
|
|
|
|
|
|
# if wireguard not in current repositories |
|
|
|
# if wireguard not in current repositories |
|
|
|
|
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then |
|
|
|
if ! $(sudo apt-cache show wireguard > /dev/null 2>&1) ; then |
|
|
|
if ! $(sudo apt-cache show wireguard > /dev/null 2>&1) ; then |
|
|
|
# install PPAs |
|
|
|
# install PPAs |
|
|
|
|
|
|
|
|
|
|
|
@ -26,7 +27,13 @@ if ! $(sudo apt-cache show wireguard > /dev/null 2>&1) ; then |
|
|
|
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" |
|
|
|
|
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then |
|
|
|
sudo apt-get update |
|
|
|
sudo apt-get update |
|
|
|
sudo apt-get install -y openresolv wireguard |
|
|
|
sudo apt-get install -y openresolv wireguard |
|
|
|
|
|
|
|
elif [ "$DISTRO" == "arch" ]; then |
|
|
|
|
|
|
|
sudo pacman -Syyy |
|
|
|
|
|
|
|
sudo pacman -S --noconfirm openresolv wireguard-lts wireguard-tools |
|
|
|
|
|
|
|
fi |
|
|
|
|