You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_iptables/iptables_kmod_loaded.sh

16 lines
325 B

#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
t_Log "Running $0 - check if iptables kernel modules are loaded"
if [ "$centos_ver" -ge 7 ];then
t_Log "CentOS $centos_ver uses firewalld and not iptables -> SKIP"
t_CheckExitStatus 0
exit 0
fi
lsmod | grep "ip_tables" > /dev/null 2>&1
t_CheckExitStatus $?