#!/bin/bash

function test()
{
        ret=`dpkg -l | grep -E "iptables"`
        #echo $ret
		#$ret is not null
		if [[ -n "$ret" ]];then
			echo 0
		else
			echo 1
		fi

}
test





