aboutsummaryrefslogtreecommitdiffstats
path: root/packages/bandwidthd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bandwidthd')
-rw-r--r--packages/bandwidthd/bandwidthd.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc
index 8e2ee94e..d5a2efd7 100644
--- a/packages/bandwidthd/bandwidthd.inc
+++ b/packages/bandwidthd/bandwidthd.inc
@@ -71,7 +71,12 @@ function bandwidthd_install_config() {
if($skip_intervals)
$skip_intervals = "skip_intervals $skip_intervals\n";
- $ifdescrs = array($config['installedpackages']['bandwidthd']['config'][0]['active_interface']);
+ if($config['installedpackages']['bandwidthd']['config'][0]['active_interface']){
+ $ifdescrs = array($config['installedpackages']['bandwidthd']['config'][0]['active_interface']);
+ } else {
+ log_error("You should specify a interface for bandwidthd to listen on. exiting.");
+ exit;
+ }
/* initialize to "" */
$subnets = "";