diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-09 19:22:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-09 19:22:45 +0000 |
commit | 34ce4ed1563ddf131f6da851c760f5a02143a24e (patch) | |
tree | c4ab3b6ede3a0648d60002a9a71819543baa5a6e | |
parent | dd4cced43c85959d649c608ca7da5c96cf7c584d (diff) | |
download | pfsense-packages-34ce4ed1563ddf131f6da851c760f5a02143a24e.tar.gz pfsense-packages-34ce4ed1563ddf131f6da851c760f5a02143a24e.tar.bz2 pfsense-packages-34ce4ed1563ddf131f6da851c760f5a02143a24e.zip |
Fix ntop to work with new convert_friendly_interface_to_real_interface_name directive.
-rw-r--r-- | packages/ntop/ntop.xml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml index 57a811a1..aad1a88d 100644 --- a/packages/ntop/ntop.xml +++ b/packages/ntop/ntop.xml @@ -58,25 +58,27 @@ config_lock(); if($_POST == "") $_POST = $config['installedpackages']['ntop']['config']; if($_POST['password'] == $_POST['passwordagain']) { - $interfaces = " -i "; $ifaces=$_POST['iface']; $isfirst = 0; $lan = $config['interfaces']['lan']['if']; - foreach($ifaces as $element=>$if) + $ifaces = split(" ", $iface); + foreach($ifaces as $if) { if($isfirst == 1) $interfaces .= ","; - $interfaces .= convert_friendly_interface_to_real_interface_name($ifaces[$element]); + echo $if . " " ; + $interfaces .= convert_friendly_interface_to_real_interface_name($if); $isfirst = 1; } if($interfaces == "") { $interfaces = $lan; } + echo "Using interface(s): " . $interfaces . "\n"; system("/usr/local/bin/ntop --set-admin-password=" . $_POST['password']); system("killall ntop 2>/dev/null"); system("rm /usr/local/etc/rc.d/ntop.sh"); $fout = fopen("/usr/local/etc/rc.d/ntop.sh","w"); fwrite($fout, "#!/bin/sh\n\n"); - fwrite($fout, "/usr/local/bin/ntop " . $interfaces . " -u root -d --ipv4 -M\n\n"); + fwrite($fout, "/usr/local/bin/ntop -i " . $interfaces . " -u root -d --ipv4 -M\n\n"); fclose($fout); conf_mount_ro(); config_unlock(); |