summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-12-04 23:19:22 -0600
committerChris Buechler <cmb@pfsense.org>2014-12-04 23:19:22 -0600
commit514512dd016467618a2da5f6f0456c362bcad237 (patch)
tree8d2f53c51c0b4a4c3c2d6a1ec345a2e50ecb2280 /etc/inc/interfaces.inc
parent5ed9fab764d445f99aff4d42f350de1c68d5eb8c (diff)
downloadpfsense-514512dd016467618a2da5f6f0456c362bcad237.zip
pfsense-514512dd016467618a2da5f6f0456c362bcad237.tar.gz
Don't try to launch 3gstats unless it's on a valid device.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index eea4d6b..733ba20 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1844,8 +1844,10 @@ EOD;
if(preg_match("/zte/i", implode("\n", $usbmodemoutput))) {
$mondev = substr(basename($port), 0, -1) . "1";
}
- log_error("Starting 3gstats.php on device '{$mondev}' for interface '{$interface}'");
- mwexec_bg("/usr/local/bin/3gstats.php {$mondev} {$interface}");
+ if($mondev != '') {
+ log_error("Starting 3gstats.php on device '{$mondev}' for interface '{$interface}'");
+ mwexec_bg("/usr/local/bin/3gstats.php {$mondev} {$interface}");
+ }
}
return 1;
OpenPOWER on IntegriCloud