From 48484aacb7613581b17faf92f6a6543546cc0a56 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 28 Jun 2011 20:45:43 +0000 Subject: Add recovery code for gif/gre the same as in interface_configure. This helps gif/gre tunnels. Needed for capr? Suggested-by: jim-p --- etc/rc.newwanip | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'etc/rc.newwanip') 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'); -- cgit v1.1