diff options
author | Scott Ullrich <sullrich@G5.local> | 2009-10-25 23:41:19 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@G5.local> | 2009-10-25 23:41:19 -0400 |
commit | 08f03cdfbfab0ce28f11e753dbd71fe08fcd3e6e (patch) | |
tree | 137f540c1cce1380bef26230c767e3cc4edea3ff /etc | |
parent | 55563f1b86e3c4e51a62d297ec1e6a899cc03cc9 (diff) | |
download | pfsense-08f03cdfbfab0ce28f11e753dbd71fe08fcd3e6e.zip pfsense-08f03cdfbfab0ce28f11e753dbd71fe08fcd3e6e.tar.gz |
Add newline
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 7 |
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) |