Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 322b37c5b862a0bcfb282a668d6d40c8 > scriptlet

tree-firewall-0.2-1.noarch.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	/sbin/chkconfig --del firewall
fi

POSTIN

/bin/sh
echo -n "Trying to identify which userspace tool do you use... "
echo -ne "\n#USERSPACE_TOOL=" >> /etc/sysconfig/firewall
if [ -f /usr/sbin/iptables -o -f /sbin/iptables ]; then
	echo "iptables"
	echo "iptables" >> /etc/sysconfig/firewall
elif [ -f /sbin/ipchains -o -f /usr/sbin/ipchains ]; then
	echo "ipchains"
	echo "ipchains" >> /etc/sysconfig/firewall
else
	echo "failed!"
	echo "unknown" >> /etc/sysconfig/firewall
fi
echo "You should modify /etc/sysconfig/firewall"

/sbin/chkconfig --add firewall