blob: da2ea2a51a808c7061e69479aba792fd3efb87c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
#PKG shorewall-common
#INIT 45
. /etc/rc.conf
case $1 in
autostop) ;;
autostart)
test x"$shorewall" != x"YES" && exit 0
exec sh $0 start
;;
start)
touch /var/log/messages
mkdir -p /var/lock/subsys
/sbin/shorewall -f start 1>/dev/null
;;
stop)
/sbin/shorewall stop 1>/dev/null
;;
restart)
if [ -f /var/lib/shorewall/restore ] ; then
/sbin/shorewall restore
else
/sbin/shorewall restart 1>/dev/null
fi
;;
clear)
/sbin/shorewall clear
;;
*)
echo "Usage: $0 {start|stop|restart|clear}"
;;
esac
exit $?
|