Merge branch 'master' of ssh://shorewall.git.sourceforge.net/gitroot/shorewall/shorewall

This commit is contained in:
Tom Eastep 2012-01-17 13:02:49 -08:00
commit d1c162e2e8
11 changed files with 54 additions and 37 deletions

View File

@ -18,9 +18,18 @@ startup=0
# #
# Startup options # Startup options
# #
OPTIONS="" OPTIONS=""
#
# Start options
#
STARTOPTIONS=""
#
# Restart options
#
RESTARTOPTIONS=""
# #
# Init Log -- if /dev/null, use the STARTUP_LOG defined in shorewall.conf # Init Log -- if /dev/null, use the STARTUP_LOG defined in shorewall.conf
# #
@ -30,7 +39,6 @@ INITLOG=/dev/null
# Set this to 1 to cause '/etc/init.d/shorewall-lite stop' to place the firewall in # Set this to 1 to cause '/etc/init.d/shorewall-lite stop' to place the firewall in
# a safe state rather than to open it # a safe state rather than to open it
# #
SAFESTOP=0 SAFESTOP=0
# EOF # EOF

View File

@ -80,7 +80,7 @@ fi
# start the firewall # start the firewall
shorewall_start () { shorewall_start () {
echo -n "Starting \"Shorewall firewall\": " echo -n "Starting \"Shorewall firewall\": "
$SRWL $SRWL_OPTS start >> $INITLOG 2>&1 && echo "done." || echo_notdone $SRWL $SRWL_OPTS start $STARTOPTIONS >> $INITLOG 2>&1 && echo "done." || echo_notdone
return 0 return 0
} }
@ -98,7 +98,7 @@ shorewall_stop () {
# restart the firewall # restart the firewall
shorewall_restart () { shorewall_restart () {
echo -n "Restarting \"Shorewall firewall\": " echo -n "Restarting \"Shorewall firewall\": "
$SRWL $SRWL_OPTS restart >> $INITLOG 2>&1 && echo "done." || echo_notdone $SRWL $SRWL_OPTS restart $RESTARTOPTIONS >> $INITLOG 2>&1 && echo "done." || echo_notdone
return 0 return 0
} }

View File

@ -76,14 +76,13 @@ command="$1"
case "$command" in case "$command" in
start) start)
exec /sbin/shorewall-lite $OPTIONS $@ exec /sbin/shorewall-lite $OPTIONS start $STARTOPTIONS $@
;; ;;
stop|restart|status) restart|reload)
exec /sbin/shorewall-lite $@ exec /sbin/shorewall-lite $OPTIONS restart $RESTARTOPTIONS $@
;; ;;
reload) status|stop)
shift exec /sbin/shorewall-lite $OPTIONS $command $@
exec /sbin/shorewall-lite restart $@
;; ;;
*) *)
usage usage

View File

@ -18,19 +18,16 @@ startup=0
# #
# Global start/restart/stop options # Global start/restart/stop options
# #
OPTIONS="" OPTIONS=""
# #
# Start options # Start options
# #
STARTOPTIONS="" STARTOPTIONS=""
# #
# Restart options # Restart options
# #
RESTARTOPTIONS="" RESTARTOPTIONS=""
# #
@ -42,7 +39,6 @@ INITLOG=/dev/null
# Set this to 1 to cause '/etc/init.d/shorewall stop' to place the firewall in # Set this to 1 to cause '/etc/init.d/shorewall stop' to place the firewall in
# a safe state rather than to open it # a safe state rather than to open it
# #
SAFESTOP=0 SAFESTOP=0
# EOF # EOF

View File

@ -81,10 +81,10 @@ case "$command" in
exec /sbin/shorewall $OPTIONS start $STARTOPTIONS $@ exec /sbin/shorewall $OPTIONS start $STARTOPTIONS $@
;; ;;
restart|reload) restart|reload)
exec /sbin/shorewall @OPTIONS restart $RESTARTOPTIONS $@ exec /sbin/shorewall $OPTIONS restart $RESTARTOPTIONS $@
;; ;;
status|stop) status|stop)
exec /sbin/shorewall @OPTIONS $command $@ exec /sbin/shorewall $OPTIONS $command $@
;; ;;
*) *)
usage usage

View File

@ -18,9 +18,18 @@ startup=0
# #
# Startup options # Startup options
# #
OPTIONS="" OPTIONS=""
#
# Start options
#
STARTOPTIONS=""
#
# Restart options
#
RESTARTOPTIONS=""
# #
# Init Log -- if /dev/null, use the STARTUP_LOG defined in shorewall.conf # Init Log -- if /dev/null, use the STARTUP_LOG defined in shorewall.conf
# #
@ -30,7 +39,6 @@ INITLOG=/dev/null
# Set this to 1 to cause '/etc/init.d/shorewall6-lite stop' to place the firewall in # Set this to 1 to cause '/etc/init.d/shorewall6-lite stop' to place the firewall in
# a safe state rather than to open it # a safe state rather than to open it
# #
SAFESTOP=0 SAFESTOP=0
# EOF # EOF

View File

@ -81,7 +81,7 @@ fi
# start the firewall # start the firewall
shorewall6_start () { shorewall6_start () {
echo -n "Starting \"Shorewall6 Lite firewall\": " echo -n "Starting \"Shorewall6 Lite firewall\": "
$SRWL $SRWL_OPTS start >> $INITLOG 2>&1 && echo "done." || echo_notdone $SRWL $SRWL_OPTS start $STARTOPTIONS >> $INITLOG 2>&1 && echo "done." || echo_notdone
return 0 return 0
} }
@ -99,7 +99,7 @@ shorewall6_stop () {
# restart the firewall # restart the firewall
shorewall6_restart () { shorewall6_restart () {
echo -n "Restarting \"Shorewall6 Lite firewall\": " echo -n "Restarting \"Shorewall6 Lite firewall\": "
$SRWL $SRWL_OPTS restart >> $INITLOG 2>&1 && echo "done." || echo_notdone $SRWL $SRWL_OPTS restart $RESTARTOPTIONS >> $INITLOG 2>&1 && echo "done." || echo_notdone
return 0 return 0
} }

View File

@ -76,14 +76,13 @@ command="$1"
case "$command" in case "$command" in
start) start)
exec /sbin/shorewall6-lite $OPTIONS $@ exec /sbin/shorewall6-lite $OPTIONS start $STARTOPTIONS $@
;; ;;
stop|restart|status) restart|reload)
exec /sbin/shorewall6-lite $@ exec /sbin/shorewall6-lite $OPTIONS restart $RESTARTOPTIONS $@
;; ;;
reload) status|stop)
shift exec /sbin/shorewall6-lite $OPTIONS $command $@
exec /sbin/shorewall6-lite restart $@
;; ;;
*) *)
usage usage

View File

@ -18,9 +18,18 @@ startup=0
# #
# Startup options # Startup options
# #
OPTIONS="" OPTIONS=""
#
# Start options
#
STARTOPTIONS=""
#
# Restart options
#
RESTARTOPTIONS=""
# #
# Init Log -- if /dev/null, use the STARTUP_LOG defined in shorewall.conf # Init Log -- if /dev/null, use the STARTUP_LOG defined in shorewall.conf
# #
@ -30,7 +39,6 @@ INITLOG=/dev/null
# Set this to 1 to cause '/etc/init.d/shorewall6 stop' to place the firewall in # Set this to 1 to cause '/etc/init.d/shorewall6 stop' to place the firewall in
# a safe state rather than to open it # a safe state rather than to open it
# #
SAFESTOP=0 SAFESTOP=0
# EOF # EOF

View File

@ -86,7 +86,7 @@ wait_for_pppd () {
shorewall6_start () { shorewall6_start () {
echo -n "Starting \"Shorewall6 firewall\": " echo -n "Starting \"Shorewall6 firewall\": "
wait_for_pppd wait_for_pppd
$SRWL $SRWL_OPTS start >> $INITLOG 2>&1 && echo "done." || echo_notdone $SRWL $SRWL_OPTS start $STARTOPTIONS >> $INITLOG 2>&1 && echo "done." || echo_notdone
return 0 return 0
} }
@ -104,7 +104,7 @@ shorewall6_stop () {
# restart the firewall # restart the firewall
shorewall6_restart () { shorewall6_restart () {
echo -n "Restarting \"Shorewall6 firewall\": " echo -n "Restarting \"Shorewall6 firewall\": "
$SRWL $SRWL_OPTS restart >> $INITLOG 2>&1 && echo "done." || echo_notdone $SRWL $SRWL_OPTS restart $RESTARTOPTIONS >> $INITLOG 2>&1 && echo "done." || echo_notdone
return 0 return 0
} }

View File

@ -76,15 +76,14 @@ export SHOREWALL_INIT_SCRIPT=1
command="$1" command="$1"
case "$command" in case "$command" in
start|restart|stop) start)
exec /sbin/shorewall6 $OPTIONS $@ exec /sbin/shorewall6 $OPTIONS start $STARTOPTIONS $@
;; ;;
stop|restart|status) restart|reload)
exec /sbin/shorewall6 $@ exec /sbin/shorewall6 $OPTIONS restart $RESTARTOPTIONS $@
;; ;;
reload) status|stop)
shift exec /sbin/shorewall6 $OPTIONS $command $@
exec /sbin/shorewall6 $OPTIONS restart $@
;; ;;
*) *)
usage usage