mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove functions that are not used now with once mode of rtsold
This commit is contained in:
parent
4e6667b219
commit
a9518178f9
@ -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;
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user