From 387dd39fd902b72bacd5a26d0b52f2c69998ab03 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 25 Aug 2015 10:48:37 +0200 Subject: Warn about loaded in ip_set modules at module installation --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.am') 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 -- cgit v1.2.3