2009-05-20 02:10:42 +02:00
|
|
|
#
|
2015-10-13 00:02:50 +02:00
|
|
|
# Shorewall - isusable File
|
2009-05-20 02:10:42 +02:00
|
|
|
#
|
|
|
|
# /etc/shorewall/isusable
|
|
|
|
#
|
|
|
|
# This script is called when Shorewall is attempting to determine
|
|
|
|
# if an interface named in /etc/shorewall/providers is usable.
|
|
|
|
#
|
|
|
|
# The script is invoked inside a function that accepts an interface
|
|
|
|
# name as a single argument. The file below is designed to work with
|
2009-07-21 15:57:11 +02:00
|
|
|
# both swping and lsm as described at
|
|
|
|
# http://www.shorewall.net/MultiISP.html
|
2009-05-20 02:10:42 +02:00
|
|
|
#
|
|
|
|
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
|
|
|
|
# information.
|
|
|
|
#
|
|
|
|
###############################################################################
|
2009-07-21 15:57:11 +02:00
|
|
|
local status
|
|
|
|
status=0
|
2009-05-20 02:10:42 +02:00
|
|
|
|
2009-05-20 16:54:17 +02:00
|
|
|
[ -f ${VARDIR}/${1}.status ] && status=$(cat ${VARDIR}/${1}.status)
|
2009-05-20 02:10:42 +02:00
|
|
|
|
|
|
|
return $status
|