forked from extern/shorewall_code
24 lines
760 B
Plaintext
24 lines
760 B
Plaintext
|
#
|
||
|
# Shorewall version 4 - isusable File
|
||
|
#
|
||
|
# /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
|
||
|
# both swping and lsm as described at http://www.shorewall.net/MultiISP.html
|
||
|
#
|
||
|
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
|
||
|
# information.
|
||
|
#
|
||
|
###############################################################################
|
||
|
local status=0
|
||
|
|
||
|
[ -f /etc/shorewall/${1}.status ] && status=$(cat /etc/shorewall/${1}.status)
|
||
|
|
||
|
return $status
|
||
|
|
||
|
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE
|