2009-02-21 18:21:51 +01:00
|
|
|
#
|
|
|
|
# Shorewall version 4 - 'isusable' sample script
|
|
|
|
#
|
|
|
|
# /etc/shorewall/isusable
|
|
|
|
#
|
|
|
|
# This script is a companion to the 'swping' script described at
|
|
|
|
# http://www.shorewall.net/MultiISP.html#swping.
|
|
|
|
#
|
|
|
|
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
|
|
|
|
# information.
|
|
|
|
#
|
|
|
|
###############################################################################
|
2009-01-31 01:19:43 +01:00
|
|
|
local status=0
|
|
|
|
|
2009-02-21 18:21:51 +01:00
|
|
|
[ -f /etc/shorewall/${1}.status ] && status=$(cat /etc/shorewall/${1}.status)
|
2009-01-31 01:19:43 +01:00
|
|
|
|
|
|
|
return $status
|