Diagnostics: Darkstat
Darkstat
3.0
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");