]> granicus.if.org Git - ipset/commitdiff
Warn about loaded in ip_set modules at module installation
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 25 Aug 2015 08:48:37 +0000 (10:48 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 25 Aug 2015 08:48:37 +0000 (10:48 +0200)
Makefile.am

index 290df8f34b5c5a37ba363c64ad2617e138bd6d6b..a3f31dd2791a2de62d1f0bc51e8454c25d32b601 100644 (file)
@@ -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