summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@G5.local>2009-10-25 23:41:19 -0400
committerScott Ullrich <sullrich@G5.local>2009-10-25 23:41:19 -0400
commit08f03cdfbfab0ce28f11e753dbd71fe08fcd3e6e (patch)
tree137f540c1cce1380bef26230c767e3cc4edea3ff
parent55563f1b86e3c4e51a62d297ec1e6a899cc03cc9 (diff)
downloadpfsense-08f03cdfbfab0ce28f11e753dbd71fe08fcd3e6e.zip
pfsense-08f03cdfbfab0ce28f11e753dbd71fe08fcd3e6e.tar.gz
Add newline
-rw-r--r--etc/inc/interfaces.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 1db38e7..0e0388e 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)
OpenPOWER on IntegriCloud