Vorbereitung auf upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_iptables@5572 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
2f82fed4d9
commit
82b1cbc73b
20
etc/init/iptables.conf
Normal file
20
etc/init/iptables.conf
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
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
|
|
@ -21,6 +21,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
WDIR=`pwd`
|
WDIR=`pwd`
|
||||||
cd etc/init.d
|
cd etc/init.d
|
||||||
chmod 755 firewall
|
chmod 755 firewall
|
||||||
|
@ -36,3 +37,4 @@ for i in 1 2 3 4 5; do
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
cd $WDIR
|
cd $WDIR
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user