Remove functions that are not used now with once mode of rtsold

This commit is contained in:
Ermal 2013-03-19 20:19:03 +00:00
parent 4e6667b219
commit a9518178f9
2 changed files with 0 additions and 17 deletions

View File

@ -1197,9 +1197,6 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
case "slaac":
case "dhcp6":
$pidv6 = find_dhcp6c_process($realif);
if($pidv6)
posix_kill($pidv6, SIGTERM);
$pidv6 = find_rtsold_process($realif);
if($pidv6)
posix_kill($pidv6, SIGTERM);
sleep(3);
@ -2691,17 +2688,6 @@ function find_dhclient_process($interface) {
return intval($pid);
}
function find_rtsold_process($interface) {
global $g;
if ($interface && isvalidpid("{$g['varrun_path']}/rtsold_{$interface}.pid"))
$pid = trim(file_get_contents("{$g['varrun_path']}/rtsold_{$interface}.pid"), " \n");
else
return(false);
return intval($pid);
}
function find_dhcp6c_process($interface) {
global $g;

View File

@ -727,9 +727,6 @@ if ($_POST['apply']) {
$pid = find_dhcp6c_process($wancfg['if']);
if($pid)
posix_kill($pid, SIGTERM);
$pid = find_rtsold_process($wancfg['if']);
if($pid)
posix_kill($pid, SIGTERM);
} else if ($wancfg['ipaddr'] == "dhcp") {
$pid = find_dhclient_process($wancfg['if']);
if($pid)