Don't assume that statistical provider interfaces are optional

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-09-30 13:37:58 -07:00
parent f989c2f5f6
commit c7e403bad0
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -599,7 +599,11 @@ debug_restore_input() {
}
interface_enabled() {
return $(cat ${VARDIR}/$1.status)
status=0
[ -f ${VARDIR}/${1}.status ] && status=$(cat ${VARDIR}/${1}.status)
return status
}
distribute_load() {