diff options
-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) |