diff options
author | Yann ILAS <yann.ilas@gmail.com> | 2016-05-19 18:34:35 +0300 |
---|---|---|
committer | Michael Boelen <michael@cisofy.com> | 2016-05-19 18:34:35 +0300 |
commit | e8d6308d825c3488726acfbc0bbf4da3dd069621 (patch) | |
tree | 6f6a3b7b4ffeaf2db0a6bc0026492913c82712dc /include/tests_firewalls | |
parent | 770605e4c656f0b0543ba5dd5503fb5a074e08ce (diff) |
use ${LSMODBINARY} instead of lsmod (#200)
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r-- | include/tests_firewalls | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls index a64be661..b1153934 100644 --- a/include/tests_firewalls +++ b/include/tests_firewalls @@ -40,7 +40,7 @@ # Description : Check iptables kernel module Register --test-no FIRE-4502 --os Linux --weight L --network NO --description "Check iptables kernel module" if [ ${SKIPTEST} -eq 0 ]; then - FIND=`lsmod | awk '{ print $1 }' | grep "^ip*_tables"` + FIND=`${LSMODBINARY} | awk '{ print $1 }' | grep "^ip*_tables"` if [ ! "${FIND}" = "" ]; then FIREWALL_ACTIVE=1 FIREWALL_SOFTWARE="iptables" @@ -385,7 +385,7 @@ if [ ! "${NFTBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no FIRE-4536 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --description "Check nftables status" if [ ${SKIPTEST} -eq 0 ]; then - FIND=`lsmod | awk '{ print $1 }' | grep "^nf*_tables"` + FIND=`${LSMODBINARY} | awk '{ print $1 }' | grep "^nf*_tables"` if [ ! "${FIND}" = "" ]; then FIREWALL_SOFTWARE="nftables" NFTABLES_ACTIVE=1 |