1 2 3 4 5 6 7
export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-install-rule /etc/gconf/schemas/firestarter.schemas &>/dev/null if [ "$1" = "1" ]; then /sbin/chkconfig --level 0123456 iptables off 2>/dev/null || : /sbin/chkconfig --add firestarter /sbin/chkconfig firestarter on fi
1 2 3 4 5 6
if [ "$1" = "0" ]; then if [ -e /etc/dhclient-exit-hooks ]; then grep -v 'sh /etc/firestarter/firewall.sh start' < /etc/dhclient-exit-hooks > /etc/dhclient-exit-hooks.tmp mv /etc/dhclient-exit-hooks.tmp /etc/dhclient-exit-hooks fi fi
1 2 3 4 5 6 7 8
if [ "$1" = "0" ]; then export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/firestarter.schemas &>/dev/null /sbin/chkconfig iptables reset 2>/dev/null || : /sbin/service firestarter stop >/dev/null 2>&1 /sbin/chkconfig --del firestarter fi