From bb992eb3c6364b2b7f6ed064a0bc2c7e0f12a549 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 19 Oct 2009 23:17:22 -0400 Subject: [PATCH] Writw out ppp.linkup file --- etc/inc/interfaces.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 61dedd9ff2..62e2a131fb 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -904,9 +904,15 @@ function interface_ppp_configure($ifcfg) { } } + $rclinkup = "default:\n"; + $rclinkup.= "! /etc/rc.filter_configure_sync"; + // Write out configuration for ppp.conf file_put_contents("/etc/ppp/ppp.conf", $peerfile); + // Write out linkup file + file_put_contents("/etc/ppp/ppp.linkup", $rclinkup); + // Launch specified ppp instance mwexec("/usr/sbin/ppp -background {$orig_dev}"); }