Revision 9b5fdb5b
Added by Scott Ullrich over 16 years ago
etc/rc.newwanip | ||
---|---|---|
120 | 120 |
/* restart packages */ |
121 | 121 |
if($old_ip <> "") |
122 | 122 |
if($old_ip <> $curwanip) { |
123 |
exec("/etc/rc.start_packages"); |
|
123 | 124 |
exec("/etc/rc.start_packages"); |
124 | 125 |
log_error("pfSense package system has detected an ip change $old_ip -> $curwanip ... Restarting packages."); |
125 | 126 |
} |
... | ... | |
132 | 133 |
|
133 | 134 |
return 0; |
134 | 135 |
|
135 |
?> |
|
136 |
?> |
Also available in: Unified diff
Sync the time on ip change and alert the logs