mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
interfaces: wait for completion of dhcp6c termination
This commit is contained in:
parent
f98e08d16a
commit
e6dc3265fe
@ -3233,9 +3233,10 @@ function interface_dhcpv6_configure($interface = 'wan', $wancfg)
|
||||
$rtsoldscript .= "\techo \${2} > /tmp/{$wanif}_routerv6\n";
|
||||
$rtsoldscript .= "\techo \${2} > /tmp/{$wanif}_defaultgwv6\n";
|
||||
$rtsoldscript .= "fi\n";
|
||||
$rtsoldscript .= "if [ -f /var/run/dhcp6c_{$wanif}.pid ]; then\n";
|
||||
$rtsoldscript .= "\t/bin/pkill -F /var/run/dhcp6c_{$wanif}.pid\n";
|
||||
$rtsoldscript .= "\t/bin/sleep 1\n";
|
||||
$rtsoldscript .= "PID=$(cat /var/run/dhcp6c_{$wanif}.pid)\n";
|
||||
$rtsoldscript .= "if [ -n \"\${PID}\" ]; then\n";
|
||||
$rtsoldscript .= "\t/bin/kill \${PID}\n";
|
||||
$rtsoldscript .= "\t/bin/pwait \${PID}\n";
|
||||
$rtsoldscript .= "fi\n";
|
||||
$rtsoldscript .= "/usr/bin/logger -t rtsold \"Starting dhcp6 client for interface {$interface}({$wanif})\"\n";
|
||||
$rtsoldscript .= "$dhcp6ccommand\n";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user