diff options
-rwxr-xr-x | etc/rc.newwanipv6 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6 index fe2d68b..5b9ff86 100755 --- a/etc/rc.newwanipv6 +++ b/etc/rc.newwanipv6 @@ -80,6 +80,10 @@ if (empty($interface)) { return; } +//Do not process while booting +if ($g['booting'] && $config['interfaces'][$interface]['ipaddrv6'] != "dhcp6") + return; + /* * NOTE: Take care of openvpn and similar if you generate the event to reconfigure an interface. * i.e. OpenVPN might be in tap mode and not have an ip. @@ -116,10 +120,6 @@ if (!empty($new_domain_name)) if (is_ipaddrv6($curwanipv6)) @file_put_contents("{$g['vardb_path']}/{$interface}_ipv6", $curwanipv6); -//Do not process while booting -if ($g['booting']) - return; - log_error("rc.newwanipv6: on (IP address: {$curwanipv6}) (interface: {$interface}) (real interface: {$interface_real})."); $oldipv6 = ""; |