|
|
|
|
@ -3,7 +3,7 @@
@@ -3,7 +3,7 @@
|
|
|
|
|
figlet "Mistborn: Installing Wireguard" |
|
|
|
|
|
|
|
|
|
# if wireguard not in current repositories |
|
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then |
|
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ]; then |
|
|
|
|
if ! $(sudo apt-cache show wireguard > /dev/null 2>&1) ; then |
|
|
|
|
# install PPAs |
|
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "ras
@@ -30,7 +30,7 @@ if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "ras
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "Installing Wireguard" |
|
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then |
|
|
|
|
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ]; then |
|
|
|
|
sudo apt-get update |
|
|
|
|
sudo apt-get install -y openresolv wireguard |
|
|
|
|
elif [ "$DISTRO" == "arch" ]; then |
|
|
|
|
|