aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ntop/ntop.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-24 23:29:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-24 23:29:57 +0000
commitfd16ce2c0a14c90811dea040a9335b9c83a09b77 (patch)
tree4da15b0b95ade84e2fbeab213096f49b6ea89da5 /packages/ntop/ntop.xml
parent97eb17f4cf4edf144f29fe858f61f32dd5aacda2 (diff)
downloadpfsense-packages-fd16ce2c0a14c90811dea040a9335b9c83a09b77.tar.gz
pfsense-packages-fd16ce2c0a14c90811dea040a9335b9c83a09b77.tar.bz2
pfsense-packages-fd16ce2c0a14c90811dea040a9335b9c83a09b77.zip
Use a comma to seperate.
Diffstat (limited to 'packages/ntop/ntop.xml')
-rw-r--r--packages/ntop/ntop.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml
index 01ef37ba..86b29264 100644
--- a/packages/ntop/ntop.xml
+++ b/packages/ntop/ntop.xml
@@ -69,14 +69,18 @@
$ifaces_final = "";
if($ntop_config['password'] and $ntop_config['passwordagain']) {
if($ntop_config['password'] == $ntop_config['passwordagain']) {
+ $first = 0;
foreach($_POST['interface_array'] as $iface) {
$if = convert_friendly_interface_to_real_interface_name($iface);
if($if) {
- $ifaces_final .= " -i " . $if;
+ $ifaces_final .= " " . $if;
+ if($first == 1)
+ $ifaces_final .= ",";
+ $first = 1;
}
}
exec("/usr/local/bin/ntop --set-admin-password=" . $_POST['password'] . " &amp;", $ntopout);
- $start = "/usr/local/bin/ntop " . $ifaces_final . " -u root -d --ipv4 -M -x 8102 -X 8192 &amp;";
+ $start = "/usr/local/bin/ntop -i " . $ifaces_final . " -u root -d --ipv4 -M -x 8102 -X 8192 &amp;";
write_rcfile(array(
"file" => "ntop.sh",
"start" => $start,