Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pop_os #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions wireguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ check_os() {
fi
[ -z "$(_os)" ] && _error "Not supported OS"
case "$(_os)" in
ubuntu)
ubuntu|pop)
[ -n "$(_os_ver)" -a "$(_os_ver)" -lt 16 ] && _error "Not supported OS, please change to Ubuntu 16+ and try again."
;;
debian|raspbian)
Expand Down Expand Up @@ -259,7 +259,7 @@ install_wg_tools() {
install_wg_pkgs() {
_info "Install dependencies for wireguard"
case "$(_os)" in
ubuntu|debian|raspbian)
ubuntu|pop|debian|raspbian)
_error_detect "apt-get update"
_error_detect "apt-get -y install qrencode"
_error_detect "apt-get -y install iptables"
Expand Down Expand Up @@ -298,7 +298,7 @@ install_wg_1() {
install_wg_pkgs
_info "Install wireguard from repository"
case "$(_os)" in
ubuntu)
ubuntu|pop)
_error_detect "add-apt-repository ppa:wireguard/wireguard"
_error_detect "apt-get update"
_error_detect "apt-get -y install linux-headers-$(uname -r)"
Expand Down Expand Up @@ -342,7 +342,7 @@ install_wg_2() {
install_wg_pkgs
_info "Install wireguard from source"
case "$(_os)" in
ubuntu|debian|raspbian)
ubuntu|pop|debian|raspbian)
if [ ! -d "/usr/src/linux-headers-$(uname -r)" ]; then
if [ "$(_os)" = "raspbian" ]; then
_error_detect "apt-get -y install raspberrypi-kernel-headers"
Expand All @@ -369,7 +369,7 @@ install_wg_3() {
install_wg_pkgs
_info "Install wireguard from repository"
case "$(_os)" in
ubuntu)
ubuntu|pop)
_error_detect "add-apt-repository ppa:wireguard/wireguard"
_error_detect "apt-get update"
_error_detect "apt-get -y install --no-install-recommends wireguard-tools"
Expand Down