Blame tests/p_iptables/iptables_kmod_loaded.sh

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