diff --git a/extras/ikev2setup.sh b/extras/ikev2setup.sh index 9ae8a38c9e..03c5b74bc1 100755 --- a/extras/ikev2setup.sh +++ b/extras/ikev2setup.sh @@ -105,11 +105,19 @@ EOF fi else os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9') - if [ "$os_ver" = 8 ] || [ "$os_ver" = 9 ] || [ "$os_ver" = "jessiesid" ] \ + if [ "$os_ver" = 8 ] || [ "$os_ver" = 9 ] || [ "$os_ver" = "stretchsid" ] \ || [ "$os_ver" = "bustersid" ]; then cat 1>&2 <= 10 or Ubuntu >= 20.04. This version of Ubuntu/Debian is too old and not supported. +EOF + exit 1 + fi + if [ "$os_ver" = "trixiesid" ] && [ -f /etc/os-release ] \ + && [ "$(. /etc/os-release && printf '%s' "$VERSION_ID")" = "24.10" ]; then +cat 1>&2 <&2 <= 10 or Ubuntu >= 20.04. This version of Ubuntu/Debian is too old and not supported. +EOF + exit 1 + fi + if [ "$os_ver" = "trixiesid" ] && [ -f /etc/os-release ] \ + && [ "$(. /etc/os-release && printf '%s' "$VERSION_ID")" = "24.10" ]; then +cat 1>&2 <&2 <= 10 or Ubuntu >= 20.04. This version of Ubuntu/Debian is too old and not supported. +EOF + exit 1 + fi + if [ "$os_ver" = "trixiesid" ] && [ -f /etc/os-release ] \ + && [ "$(. /etc/os-release && printf '%s' "$VERSION_ID")" = "24.10" ]; then +cat 1>&2 <&2 <= 10 or Ubuntu >= 20.04. This version of Ubuntu/Debian is too old and not supported. +EOF + exit 1 + fi + if [ "$os_ver" = "trixiesid" ] && [ -f /etc/os-release ] \ + && [ "$(. /etc/os-release && printf '%s' "$VERSION_ID")" = "24.10" ]; then +cat 1>&2 <&2 <= 10 or Ubuntu >= 20.04. This version of Ubuntu/Debian is too old and not supported. +EOF + exit 1 + fi + if [ "$os_ver" = "trixiesid" ] && [ -f /etc/os-release ] \ + && [ "$(. /etc/os-release && printf '%s' "$VERSION_ID")" = "24.10" ]; then +cat 1>&2 <