diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-08-25 10:48:37 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-08-25 10:48:37 +0200 |
commit | 387dd39fd902b72bacd5a26d0b52f2c69998ab03 (patch) | |
tree | aefa8689bfde4d7c05e7e10704067acc81c30fee | |
parent | 30889fdb22502d8dbf78094f2aec37a2f3c72879 (diff) |
Warn about loaded in ip_set modules at module installation
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 11 insertions, 0 deletions
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 |