Revision 0b8e9d38
Added by Jim Pingle over 13 years ago
etc/rc.newwanipv6 | ||
---|---|---|
62 | 62 |
global $oldip, $curwanipv6, $g; |
63 | 63 |
|
64 | 64 |
/* restart packages */ |
65 |
system_ntp_configure(); |
|
65 |
system_ntp_configure(false); |
|
66 |
mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh"); |
|
66 | 67 |
log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages."); |
67 | 68 |
mwexec_bg("/etc/rc.start_packages"); |
68 | 69 |
} |
Also available in: Unified diff
On its own, ntpd does not sync fast enough at bootup, so bring back the ntpdate sync but improve it so it can't get stuck forever.