diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-03-01 09:37:37 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-01 19:35:46 +0700 |
commit | 3243b42dab18a38feac647cec35425752dcbf4e7 (patch) | |
tree | 84645cbfb9ed91642e5ecde6c37b6d251a1df4be /network | |
parent | 2ef441d406d7328e3c7a0862a384180a5f478ad6 (diff) |
network/wireguard-linux-compat: Add a kernel version test block.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild b/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild index 1f6d2e34527dd..a4a5473a3f557 100644 --- a/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild +++ b/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild @@ -68,6 +68,15 @@ else LIBDIRSUFFIX="" fi +if [ "$(uname -r | cut -d. -f1)" -ge "5" ]; then + if [ "$(uname -r | cut -d. -f2)" -ge "6" ]; then + echo "WireGuard has been merged into Linux >= 5.6: your kernel is version" + echo "$(uname -r) therefore this compatibility module is no longer required." + echo "exiting..." + exit 0 + fi +fi + set -e rm -rf $PKG |