From ce3e5d8d155b1af96ddd64c10d16767de2dbe90c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 16 Jul 2006 19:29:56 +0000 Subject: Add darkstat settings since version 3 is a tad bit different --- packages/darkstat/darkstat.xml | 60 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 6 deletions(-) (limited to 'packages') diff --git a/packages/darkstat/darkstat.xml b/packages/darkstat/darkstat.xml index 1db6a795..a2df94bb 100644 --- a/packages/darkstat/darkstat.xml +++ b/packages/darkstat/darkstat.xml @@ -3,20 +3,68 @@ Diagnostics: Darkstat Darkstat 3.0 + + Darkstat Settings + Setup darkstat specific settings +
Diagnostics
+ /pkg_edit.php?xml=darkstat.xml&id=0 +
Darkstat Access Darkstat -
Diagnostics
http://$myurl:666 +
Diagnostics
+ darkstat
- - /usr/local/etc/rc.d/ - 0755 - http://www.pfsense.com/packages/config/darkstat/darkstat.sh - + + darkstat + darkstat.sh + Darkstat + + + + Darkstat Settings + /pkg_edit.php?xml=darkstat.xml&id=0 + + + + Access Darkstat + http://$myurl:666 + + + + + Interface + interface_array + lan + true + 3 + interfaces_selection + + Darkstat darkstat.sh darkstat + + $first = 0; + foreach($_POST['interface_array'] as $iface) { + $if = convert_friendly_interface_to_real_interface_name($iface); + if($if) { + if($first == 1) + $ifaces_final .= ","; + $ifaces_final .= $if; + $first = 1; + } + } + $start = "/usr/local/sbin/darkstat -i " . $ifaces_final . " -p 666 -d"; + write_rcfile(array( + "file" => "darkstat.sh", + "start" => $start, + "stop" => "/usr/bin/killall darkstat" + ) + ); + restart_service("darkstat"); + -- cgit v1.2.3