mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
Revert "dhcp: radvd HUP brings back the infamous "can't join ipv6-allrouters" error"
This reverts commit 38049e4ea8b342b6c5f7705e69c2e0034dc67914. This can be fixed in radvd.
This commit is contained in:
parent
b50e529511
commit
bbbed94a93
@ -517,11 +517,15 @@ function dhcpd_radvd_configure($verbose = false, $blacklist = [])
|
||||
|
||||
file_put_contents('/var/etc/radvd.conf', $radvdconf);
|
||||
|
||||
killbypid('/var/run/radvd.pid');
|
||||
|
||||
if (count($radvdifs)) {
|
||||
/* only start in valid configuration for legacy condition */
|
||||
mwexec('/usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog');
|
||||
if (isvalidpid('/var/run/radvd.pid')) {
|
||||
killbypid('/var/run/radvd.pid', 'HUP');
|
||||
} else {
|
||||
mwexec('/usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog');
|
||||
}
|
||||
} else {
|
||||
/* stop on invalid configuration for legacy condition above */
|
||||
killbypid('/var/run/radvd.pid');
|
||||
}
|
||||
|
||||
service_log("done.\n", $verbose);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user