* The module's name should not be partial matched.
SETTYPE_MODLIST="ipset_hash_ipmac"
It shoud not be matched with "ipset_hash_ip".
Signed-off-by: Neutron Soutmun <neo.neutron@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
done
else
for mod in $IPSET_ALL_MODULES; do
- if echo $SETTYPE_MODLIST | grep $mod >/dev/null; then
+ if echo $SETTYPE_MODLIST | grep -w "$mod" >/dev/null; then
:
else
AC_MSG_RESULT([ ${mod}])
done
AC_MSG_RESULT([ Dynamic modules:])
for mod in $IPSET_ALL_MODULES; do
- if echo $SETTYPE_MODLIST | grep $mod >/dev/null; then
+ if echo $SETTYPE_MODLIST | grep -w "$mod" >/dev/null; then
AC_MSG_RESULT([ ${mod}])
fi
done