(legacy) remove dead code

This commit is contained in:
Ad Schellevis 2016-02-04 16:54:30 +01:00
parent 00de826a84
commit 6dfe4bfd8d
2 changed files with 0 additions and 25 deletions

View File

@ -1784,28 +1784,6 @@ function system_disable_arp_wrong_if()
));
}
function enable_watchdog()
{
global $config;
return; /* XXX delete or repair please */
$install_watchdog = false;
$supported_watchdogs = array("Geode");
$file = @file_get_contents('/var/run/dmesg.boot');
foreach($supported_watchdogs as $sd) {
if(stristr($file, "Geode")) {
$install_watchdog = true;
}
}
if($install_watchdog == true) {
if(is_process_running("watchdogd")) {
mwexec("/usr/bin/killall watchdogd", true);
}
exec("/usr/sbin/watchdogd");
}
}
function get_possible_listen_ips($include_ipv6_link_local=false) {
$interfaces = get_configured_interface_with_descr();
$carplist = get_configured_carp_interface_list();

View File

@ -333,9 +333,6 @@ reload_ttys();
/* load graphing functions */
enable_rrd_graphing();
/* enable watchdog if supported */
enable_watchdog();
/* if we are operating at 1000 then increase timeouts.
this was never accounted for after moving to 1000 hz */
$kern_hz = get_single_sysctl('kern.clockrate');