summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-26 22:01:24 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-26 22:01:24 +0100
commit329c2bb313a1e13f09667ba3cb43ca4f3460ec79 (patch)
tree9f5f4af1664e6f20d07900e73b4cea558c0fc566 /etc/inc
parentb8828d0af3454e46a57612e253a315cea3cd5b67 (diff)
downloadpfsense-329c2bb313a1e13f09667ba3cb43ca4f3460ec79.zip
pfsense-329c2bb313a1e13f09667ba3cb43ca4f3460ec79.tar.gz
Make at least the code correct here even though it does not make sense on what it does!
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 490d5c4..0b0d7b7 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1454,7 +1454,7 @@ function interface_ppps_configure($interface) {
$descr = isset($ifcfg['descr']) ? $ifcfg['descr'] : strtoupper($interface);
echo "starting {$pppif} link...";
// Do not re-configure the interface if we are booting and it's already been started
- if(file_exists("{$g['varrun_path']}/{$ppp['type']}_{$interface}.pid"))
+ if(isvalidpid("{$g['varrun_path']}/{$ppp['type']}_{$interface}.pid"))
return 0;
}
@@ -1825,6 +1825,7 @@ EOD;
/* wait for upto 10 seconds for the interface to appear (ppp(oe)) */
$i = 0;
while($i < 10) {
+ unset($out);
exec("/sbin/ifconfig " . escapeshellarg($ppp['if']) . " 2>&1", $out, $ret);
if($ret == 0)
break;
OpenPOWER on IntegriCloud