82b1cbc73b
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_iptables@5572 504e572c-2e33-0410-9681-be2bf7408885
21 lines
454 B
Plaintext
21 lines
454 B
Plaintext
description "Setup and Start iptables firewall"
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
version 1.0
|
|
emits none special
|
|
|
|
start on ( runlevel [2345] and (stopped routing))
|
|
|
|
console output
|
|
|
|
pre-start script
|
|
if [ [ ! -f /var/state/iptables.state ] && [ -f /etc/sysconfig/net/firewall ] ]; then
|
|
/etc/init.d/firewall configure
|
|
fi
|
|
end script
|
|
|
|
script
|
|
if [ -f /var/state/iptables.state ]; then
|
|
/etc/init.d/firewall start
|
|
fi
|
|
end script
|