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
function sync_package_darkstat() {
$first = 0;
foreach($_POST['interface_array'] as $iface) {
$if = convert_friendly_interface_to_real_interface_name($iface);
if($if) {
$ifaces_final .= " -i " . $if;
$first = 1;
}
}
$start = "/usr/local/sbin/darkstat" . $ifaces_final . " -p 666 -d";
write_rcfile(array(
"file" => "darkstat.sh",
"start" => $start,
"stop" => "/usr/bin/killall darkstat"
)
);
start_service("darkstat");
}
sync_package_darkstat();
sync_package_darkstat();