https://bugs.contribs.org/show_bug.cgi?id=10793

--- Comment #4 from Jean-Philippe Pialasse <[email protected]> ---
this is running and seems to fixe somes of the updates issues

/etc/e-smith/events/xt_geoip-update/S10xt_geoip_module ->
../actions/xt_geoip_module

#!/bin/bash
KERNEL=`/bin/uname -r`;
PATH_MODULE="/lib/modules/$KERNEL/extra/xt_geoip.ko";
PATH2_MODULE="/lib/modules/$KERNEL/weak-updates/xt_geoip.ko";
PATH3_MODULE="/lib/modules/$KERNEL/weak-updates/xtables-addons/xt_geoip.ko";

# here we assume they are not regular file, as they should be a symlink
# if a regular file, this means someone did it manually.
# we also assume a kmod_xt_geoip is installed, which is required
# if one is existing, but point to a non existing file; we update
# return 1 if does not exist OR if target does not exist OR if file is not a
symlink
if [[ ! `/bin/readlink -e $PATH_MODULE` && ! `/bin/readlink -e $PATH2_MODULE`
&& ! `/bin/readlink -e $PATH3_MODULE` ]]; then
        /sbin/weak-modules  --add-kernel
fi
# we force reload the module if not in use. 
#Assuming that if it has been removed and replaced by update the modules will
not be in use anymore
/sbin/modprobe -r xt_geoip 2>/dev/null && /sbin/modprobe xt_geoip

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to