From 08f03cdfbfab0ce28f11e753dbd71fe08fcd3e6e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 25 Oct 2009 23:41:19 -0400 Subject: [PATCH] Add newline --- etc/inc/interfaces.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 1db38e78f1..0e0388e3ec 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -927,8 +927,8 @@ function interface_ppp_configure($ifcfg) { } $rclinkup = "default:\n"; - $rclinkup.= "! sh -c \"echo HISADDR\" > /tmp/INTERFACE_router\""; - $rclinkup.= "! sh -c \"/etc/rc.linkup INTERFACE start\""; + $rclinkup.= "! sh -c \"echo HISADDR\" > /tmp/INTERFACE_router\"\n"; + $rclinkup.= "! sh -c \"/etc/rc.linkup INTERFACE start\"\n"; // Write out configuration for ppp.conf file_put_contents("/etc/ppp/ppp.conf", $peerfile); @@ -936,6 +936,9 @@ function interface_ppp_configure($ifcfg) { // Write out linkup file file_put_contents("/etc/ppp/ppp.linkup", $rclinkup); + // Make executable + exec("chmod a+rx /etc/ppp/ppp.linkup"); + // Launch specified ppp instance $running = `ps awux | grep ppp | grep -v grep | grep $orig_dev`; if(!$running)