From 3b7039ef7877021110fad332e8c853c4b32fc560 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Wed, 16 May 2018 22:34:33 -0500 Subject: [PATCH] Update Linux kernel check --- vpnsetup.sh | 9 +++++++-- vpnsetup_centos.sh | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/vpnsetup.sh b/vpnsetup.sh index 27198fa..2e00b2f 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -70,8 +70,13 @@ if [ "$(id -u)" != 0 ]; then fi case "$(uname -r)" in - 4.14*|4.15*) - exiterr "Linux kernels 4.14/4.15 are not yet supported due to an xl2tpd bug." + 4.14*) + if uname -m | grep -qi '^arm'; then + exiterr "Linux kernel 4.14 is not supported due to an xl2tpd issue." + fi + ;; + 4.15*) + exiterr "Linux kernel 4.15 is not supported due to an xl2tpd issue." ;; esac diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index c96ef5a..23d8a3a 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -61,9 +61,9 @@ if [ "$(id -u)" != 0 ]; then fi case "$(uname -r)" in - 4.14*|4.15*) + 4.15*) if grep -qs "release 6" /etc/redhat-release; then - exiterr "Linux kernels 4.14/4.15 are not yet supported due to an xl2tpd bug." + exiterr "Linux kernel 4.15 is not supported due to an xl2tpd issue." fi ;; esac