Rename function interface_up() to interface_enabled()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-10-27 18:38:22 -07:00
parent 055fceb82f
commit 85e5669fc7

View File

@ -587,7 +587,7 @@ debug_restore_input() {
done done
} }
interface_up() { interface_enabled() {
return $(cat ${VARDIR}/$1.status) return $(cat ${VARDIR}/$1.status)
} }
@ -604,7 +604,7 @@ distribute_load() {
totalload=0 totalload=0
for interface in $@; do for interface in $@; do
if interface_up $interface; then if interface_enabled $interface; then
load=$(cat ${VARDIR}/${interface}_load) load=$(cat ${VARDIR}/${interface}_load)
eval ${interface}_load=$load eval ${interface}_load=$load
mark=$(cat ${VARDIR}/${interface}_mark) mark=$(cat ${VARDIR}/${interface}_mark)