aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-08 22:39:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-08 22:39:54 +0000
commit46b0bb3a97475f6b6ff52fcddc4ba6026d637eac (patch)
tree05d050d9f840dad513e662f9390a59f34e50b1ee /packages
parent230467efc206cc1f6e4ce9206e246ea34abecfb4 (diff)
downloadpfsense-packages-46b0bb3a97475f6b6ff52fcddc4ba6026d637eac.tar.gz
pfsense-packages-46b0bb3a97475f6b6ff52fcddc4ba6026d637eac.tar.bz2
pfsense-packages-46b0bb3a97475f6b6ff52fcddc4ba6026d637eac.zip
Move the interfac selection to the add field
Diffstat (limited to 'packages')
-rw-r--r--packages/ntop/ntop.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml
index f55d0c6b..f4dde982 100644
--- a/packages/ntop/ntop.xml
+++ b/packages/ntop/ntop.xml
@@ -43,6 +43,12 @@
if($_POST['password'] == $_POST['passwordagain']) {
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 -i " . $_POST['iface'] . " -u root -d --ipv4 -M\n\n");
+ fclose($fout);
+ system("chmod 555 /usr/local/etc/rc.d/ntop.sh");
system("/usr/local/etc/rc.d/ntop.sh");
} else {
echo "Passwords do not match!";
@@ -56,7 +62,7 @@
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 -i " . $_POST['iface'] . " -u root -d --ipv4 -M\n\n");
+ fwrite($fout, "/usr/local/bin/ntop -u root -d --ipv4 -M\n\n");
fclose($fout);
system("chmod 555 /usr/local/etc/rc.d/ntop.sh");
</custom_php_install_command>