summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-19 23:21:17 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-19 23:21:17 -0400
commit3e743abea00b5842ff96d82af8d5af9859ce2221 (patch)
tree0469d6737c459c620e230a80c4037e2d0cfaf8d5
parentc8914ce69416c1f9eeee3f91ffb0604243b6c8aa (diff)
downloadpfsense-3e743abea00b5842ff96d82af8d5af9859ce2221.zip
pfsense-3e743abea00b5842ff96d82af8d5af9859ce2221.tar.gz
Only launch ppp once for each connection at a time
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index f8542a3..dc279fb 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -914,7 +914,9 @@ function interface_ppp_configure($ifcfg) {
file_put_contents("/etc/ppp/ppp.linkup", $rclinkup);
// Launch specified ppp instance
- mwexec("/usr/sbin/ppp -background {$orig_dev}");
+ $running = `ps awux | grep ppp | grep -v grep | grep $orig_dev`;
+ if(!$running)
+ mwexec("/usr/sbin/ppp -background {$orig_dev}");
}
function interfaces_carp_setup() {
OpenPOWER on IntegriCloud