From c0bd1a4e9e57393a7d2b2fc9c0b61bfdce5b26f0 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 4 Feb 2007 20:23:27 +0000 Subject: * Note that this is pfSense package in bandwidth.conf * Automatically start package on setup since it requires no input --- packages/bandwidthd/bandwidthd.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc index a70b9eb3..d0241e1c 100644 --- a/packages/bandwidthd/bandwidthd.inc +++ b/packages/bandwidthd/bandwidthd.inc @@ -38,6 +38,7 @@ function bandwidthd_install_deinstall() { function bandwidthd_install_config() { global $config, $g; + /* user defined values */ $meta_refresh = $config['installedpackages']['bandwidthd']['config'][0]['metarefresh']; if($meta_refresh) $meta_refresh = "meta_refresh $meta_refresh\n"; @@ -63,6 +64,7 @@ function bandwidthd_install_config() { if($skip_intervals) $skip_intervals = "skip_intervals $meta_refresh\n"; + /* initialize to "" */ $subnets = ""; $ifdescrs = array("lan", "wan"); for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { @@ -82,6 +84,7 @@ function bandwidthd_install_config() { } } + /* initialize to "" */ $dev = ""; foreach($ifdescrs as $ifdescr) { $descr = convert_friendly_interface_to_real_interface_name($ifdescr); @@ -89,6 +92,12 @@ function bandwidthd_install_config() { } $config_file = << /usr/local/bandwidthd/htdocs/index.html"); + start_service("bandwidthd"); + } ?> \ No newline at end of file -- cgit v1.2.3