Commit 6dfe4bfd authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove dead code

parent 00de826a
......@@ -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();
......
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment