From f55b6cbbb1e50430e9eff0f0772c7721aaafcaa0 Mon Sep 17 00:00:00 2001 From: smos Date: Sat, 25 Feb 2012 13:46:22 +0100 Subject: [PATCH] Write out a default router file for the srd interface --- etc/inc/interfaces.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 3f32be3804..bab983e853 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3048,8 +3048,11 @@ function interface_6rd_configure($interface = "wan"){ srd0: flags=1 metric 0 mtu 1280 srd: v4plen 20 pfix fc00:0:0:1000:: plen 52 braddr 10.0.0.1 */ - return 0; + /* write out a default router file */ + file_put_contents("{$g['tmp_path']}/{$wanif}_routerv6", "::1 -ifp srd0\n"); + + return 0; } function interface_dhcpv6_configure($interface = "wan") {