diff options
author | Ismael Luceno | 2021-01-06 04:02:39 +0100 |
---|---|---|
committer | Ismael Luceno | 2021-01-06 04:15:26 +0100 |
commit | 3410dcd9ca357363be05e0cd49015a68c79b4108 (patch) | |
tree | 1f4528af2f9f7edf538933739939f940a497ba9a /net | |
parent | 5f3c8a62a2db2b5589aa8c0ac926765a684439b1 (diff) |
nftables: Make kernel check non-fatal
Diffstat (limited to 'net')
-rw-r--r-- | net/nftables/HISTORY | 3 | ||||
-rwxr-xr-x | net/nftables/PRE_BUILD | 14 |
2 files changed, 10 insertions, 7 deletions
diff --git a/net/nftables/HISTORY b/net/nftables/HISTORY index c66f725bbe..abc6a7e94b 100644 --- a/net/nftables/HISTORY +++ b/net/nftables/HISTORY @@ -1,3 +1,6 @@ +2021-01-06 Ismael Luceno <ismael@sourcemage.org> + * PRE_BUILD: made kernel check non-fatal + 2014-12-29 Eric Sandall <sandalle@sourcemage.org> * Created diff --git a/net/nftables/PRE_BUILD b/net/nftables/PRE_BUILD index da7fbce53f..5a7c930eeb 100755 --- a/net/nftables/PRE_BUILD +++ b/net/nftables/PRE_BUILD @@ -1,8 +1,8 @@ -if [[ "$(get_kernel_config CONFIG_BRIDGE_NF_EBTABLES)" != "y" && - "$(get_kernel_config CONFIG_BRIDGE_NF_EBTABLES)" != "m" ]]; then - message "${SPELL_COLOR}$SPELL${DEFAULT_COLOR}${PROBLEM_COLOR} requires" \ - "CONFIG_BRIDGE_NF_EBTABLES module/built-in${DEFAULT_COLOR}" && - return 1 -fi && - +case "$(get_kernel_config CONFIG_BRIDGE_NF_EBTABLES)" in + y|m) ;; + *) + message "${SPELL_COLOR}$SPELL${DEFAULT_COLOR}${PROBLEM_COLOR} requires" \ + "CONFIG_BRIDGE_NF_EBTABLES module/built-in${DEFAULT_COLOR}" + ;; +esac && default_pre_build |