diff --git a/shadowsocks-all.sh b/shadowsocks-all.sh index 3cce3a6..5d03481 100644 --- a/shadowsocks-all.sh +++ b/shadowsocks-all.sh @@ -40,8 +40,8 @@ software=(Shadowsocks-Python ShadowsocksR Shadowsocks-Go Shadowsocks-libev) libsodium_file="libsodium-1.0.16" libsodium_url="https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz" -mbedtls_file="mbedtls-2.12.0" -mbedtls_url="https://tls.mbed.org/download/mbedtls-2.12.0-gpl.tgz" +mbedtls_file="mbedtls-2.13.0" +mbedtls_url="https://tls.mbed.org/download/mbedtls-2.13.0-gpl.tgz" shadowsocks_python_file="shadowsocks-master" shadowsocks_python_url="https://github.com/shadowsocks/shadowsocks/archive/master.zip" @@ -174,7 +174,7 @@ check_sys(){ if [[ -f /etc/redhat-release ]]; then release="centos" systemPackage="yum" - elif grep -Eqi "debian" /etc/issue; then + elif grep -Eqi "debian|raspbian" /etc/issue; then release="debian" systemPackage="apt" elif grep -Eqi "ubuntu" /etc/issue; then diff --git a/shadowsocks-libev-debian.sh b/shadowsocks-libev-debian.sh index 64759b5..507812e 100644 --- a/shadowsocks-libev-debian.sh +++ b/shadowsocks-libev-debian.sh @@ -15,8 +15,8 @@ cur_dir=`pwd` libsodium_file="libsodium-1.0.16" libsodium_url="https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz" -mbedtls_file="mbedtls-2.12.0" -mbedtls_url="https://tls.mbed.org/download/mbedtls-2.12.0-gpl.tgz" +mbedtls_file="mbedtls-2.13.0" +mbedtls_url="https://tls.mbed.org/download/mbedtls-2.13.0-gpl.tgz" # Stream Ciphers ciphers=( @@ -142,7 +142,7 @@ check_sys(){ if [[ -f /etc/redhat-release ]]; then release="centos" systemPackage="yum" - elif grep -Eqi "debian" /etc/issue; then + elif grep -Eqi "debian|raspbian" /etc/issue; then release="debian" systemPackage="apt" elif grep -Eqi "ubuntu" /etc/issue; then diff --git a/shadowsocks-libev.sh b/shadowsocks-libev.sh index 5be1446..f9ca148 100644 --- a/shadowsocks-libev.sh +++ b/shadowsocks-libev.sh @@ -15,8 +15,8 @@ cur_dir=`pwd` libsodium_file="libsodium-1.0.16" libsodium_url="https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz" -mbedtls_file="mbedtls-2.12.0" -mbedtls_url="https://tls.mbed.org/download/mbedtls-2.12.0-gpl.tgz" +mbedtls_file="mbedtls-2.13.0" +mbedtls_url="https://tls.mbed.org/download/mbedtls-2.13.0-gpl.tgz" # Stream Ciphers ciphers=( @@ -136,7 +136,7 @@ check_sys(){ if [[ -f /etc/redhat-release ]]; then release="centos" systemPackage="yum" - elif grep -Eqi "debian" /etc/issue; then + elif grep -Eqi "debian|raspbian" /etc/issue; then release="debian" systemPackage="apt" elif grep -Eqi "ubuntu" /etc/issue; then diff --git a/shadowsocks.sh b/shadowsocks.sh index 26f07cb..a31aa6d 100644 --- a/shadowsocks.sh +++ b/shadowsocks.sh @@ -71,7 +71,7 @@ check_sys(){ if [[ -f /etc/redhat-release ]]; then release="centos" systemPackage="yum" - elif grep -Eqi "debian" /etc/issue; then + elif grep -Eqi "debian|raspbian" /etc/issue; then release="debian" systemPackage="apt" elif grep -Eqi "ubuntu" /etc/issue; then @@ -80,7 +80,7 @@ check_sys(){ elif grep -Eqi "centos|red hat|redhat" /etc/issue; then release="centos" systemPackage="yum" - elif grep -Eqi "debian" /proc/version; then + elif grep -Eqi "debian|raspbian" /proc/version; then release="debian" systemPackage="apt" elif grep -Eqi "ubuntu" /proc/version; then diff --git a/shadowsocksR.sh b/shadowsocksR.sh index 30ddced..f1b9661 100644 --- a/shadowsocksR.sh +++ b/shadowsocksR.sh @@ -103,7 +103,7 @@ check_sys(){ if [[ -f /etc/redhat-release ]]; then release="centos" systemPackage="yum" - elif grep -Eqi "debian" /etc/issue; then + elif grep -Eqi "debian|raspbian" /etc/issue; then release="debian" systemPackage="apt" elif grep -Eqi "ubuntu" /etc/issue; then