diff --git a/extras/vpnupgrade_ubuntu.sh b/extras/vpnupgrade_ubuntu.sh index aaeacbe..9ed902a 100755 --- a/extras/vpnupgrade_ubuntu.sh +++ b/extras/vpnupgrade_ubuntu.sh @@ -41,6 +41,7 @@ check_vz() { check_os() { os_type=$(lsb_release -si 2>/dev/null) + os_arch=$(uname -m | tr -dc 'A-Za-z0-9_-') [ -z "$os_type" ] && [ -f /etc/os-release ] && os_type=$(. /etc/os-release && printf '%s' "$ID") case $os_type in [Uu]buntu) @@ -60,6 +61,14 @@ check_os() { if [ "$os_ver" = 8 ] || [ "$os_ver" = "jessiesid" ]; then exiterr "Debian 8 or Ubuntu < 16.04 is not supported." fi + if [ "$os_type" = "ubuntu" ] && [ "$os_ver" = "bustersid" ] \ + && [ "$os_arch" != "x86_64" ]; then +cat 1>&2 </dev/null | grep -qF '3.49.1'; then base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0" diff --git a/vpnsetup_ubuntu.sh b/vpnsetup_ubuntu.sh index 98863c7..75f8afe 100755 --- a/vpnsetup_ubuntu.sh +++ b/vpnsetup_ubuntu.sh @@ -74,6 +74,7 @@ EOF check_os() { os_type=$(lsb_release -si 2>/dev/null) + os_arch=$(uname -m | tr -dc 'A-Za-z0-9_-') [ -z "$os_type" ] && [ -f /etc/os-release ] && os_type=$(. /etc/os-release && printf '%s' "$ID") case $os_type in [Uu]buntu) @@ -93,6 +94,14 @@ check_os() { if [ "$os_ver" = 8 ] || [ "$os_ver" = "jessiesid" ]; then exiterr "Debian 8 or Ubuntu < 16.04 is not supported." fi + if [ "$os_type" = "ubuntu" ] && [ "$os_ver" = "bustersid" ] \ + && [ "$os_arch" != "x86_64" ]; then +cat 1>&2 </dev/null | grep -qF '3.49.1'; then base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"