diff options
author | Ermal <eri@pfsense.org> | 2011-06-28 20:45:43 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-06-28 20:45:43 +0000 |
commit | 48484aacb7613581b17faf92f6a6543546cc0a56 (patch) | |
tree | 5e8e2a7db70b916446dc63471bc813e3ab89512d | |
parent | 8484586f9462d91906bb376beb756fb2032d6b2c (diff) | |
download | pfsense-48484aacb7613581b17faf92f6a6543546cc0a56.zip pfsense-48484aacb7613581b17faf92f6a6543546cc0a56.tar.gz |
Add recovery code for gif/gre the same as in interface_configure. This helps gif/gre tunnels. Needed for capr? Suggested-by: jim-p
-rwxr-xr-x | etc/rc.newwanip | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index a4fbde8..d9a8601 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -89,6 +89,15 @@ $oldip = "0.0.0.0"; if (file_exists("{$g['vardb_path']}/{$interface}_cacheip")) $oldip = file_get_contents("{$g['vardb_path']}/{$interface}_cacheip"); +unset($gre); +$gre = link_interface_to_gre($interface); +if (!empty($gre)) + array_walk($gre, 'interface_gre_configure'); +unset($gif); +$gif = link_interface_to_gif($interface); +if (!empty($gif)) + array_walk($gif, 'interface_gif_configure'); + $grouptmp = link_interface_to_group($interface); if (!empty($grouptmp)) array_walk($grouptmp, 'interface_group_add_member'); |