2009-05-20 22:40:42 +02:00
|
|
|
#
|
2015-11-09 22:09:37 +01:00
|
|
|
# Shorewall6 -- /etc/shorewall6/isusable
|
2009-05-20 22:40:42 +02:00
|
|
|
#
|
2015-11-09 09:24:20 +01:00
|
|
|
# This script is called when Shorewall6 is attempting to determine
|
|
|
|
# if an interface named in /etc/shorewall6/providers is usable.
|
2009-05-20 22:40:42 +02:00
|
|
|
#
|
2015-11-09 09:24:20 +01:00
|
|
|
# The script is invoked inside a function that accepts an interface
|
|
|
|
# name as a single argument. The file below is designed to work with
|
|
|
|
# both swping and lsm as described at
|
2019-03-25 19:11:51 +01:00
|
|
|
# http://www.shorewall.org/MultiISP.html
|
2009-05-20 22:40:42 +02:00
|
|
|
#
|
2019-03-25 19:11:51 +01:00
|
|
|
# See http://shorewall.org/shorewall_extension_scripts.htm for additional
|
2009-05-20 22:40:42 +02:00
|
|
|
# information.
|
|
|
|
#
|
|
|
|
###############################################################################
|
2015-11-16 17:16:17 +01:00
|
|
|
|
2012-03-12 21:57:37 +01:00
|
|
|
local status
|
|
|
|
status=0
|
2009-05-20 22:40:42 +02:00
|
|
|
|
|
|
|
[ -f ${VARDIR}/${1}.status ] && status=$(cat ${VARDIR}/${1}.status)
|
|
|
|
|
|
|
|
return $status
|