mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
(legacy) remove dead code
This commit is contained in:
parent
00de826a84
commit
6dfe4bfd8d
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user