From 85e5669fc79d9aaf3e95347841c110bbf0db8402 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 27 Oct 2014 18:38:22 -0700 Subject: [PATCH] Rename function interface_up() to interface_enabled() Signed-off-by: Tom Eastep --- Shorewall/Perl/lib.core | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/lib.core b/Shorewall/Perl/lib.core index 088475f90..0df60c6ff 100644 --- a/Shorewall/Perl/lib.core +++ b/Shorewall/Perl/lib.core @@ -587,7 +587,7 @@ debug_restore_input() { done } -interface_up() { +interface_enabled() { return $(cat ${VARDIR}/$1.status) } @@ -604,7 +604,7 @@ distribute_load() { totalload=0 for interface in $@; do - if interface_up $interface; then + if interface_enabled $interface; then load=$(cat ${VARDIR}/${interface}_load) eval ${interface}_load=$load mark=$(cat ${VARDIR}/${interface}_mark)