From: Jozsef Kadlecsik Date: Tue, 25 Aug 2015 08:48:37 +0000 (+0200) Subject: Warn about loaded in ip_set modules at module installation X-Git-Tag: v6.26~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=387dd39fd902b72bacd5a26d0b52f2c69998ab03;p=ipset Warn about loaded in ip_set modules at module installation --- diff --git a/Makefile.am b/Makefile.am index 290df8f..a3f31dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -57,11 +57,22 @@ otherwise the ipset kernel modules in the extra subdir will be ignored. endef export DEPMOD_WARNING +define MODULE_WARNING + +!!! WARNING !!! WARNING !!! WARNING !!! + +Your running system has got ipset related kernel modules loaded in. +You MUST rmmod the ip_set* kernel modules in order to make possible +for the system to load in the newly installed ones. +endef +export MODULE_WARNING + modules_install: if WITH_KMOD ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net \ KDIR=$$PWD/kernel modules_install @modinfo ip_set_hash_ip | ${GREP} /extra/ >/dev/null || echo "$$DEPMOD_WARNING" + @lsmod | ${GREP} '^ip_set' >/dev/null && echo "$$MODULE_WARNING" else @echo Skipping kernel modules due to --with-kmod=no endif