diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-12-04 23:19:22 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-12-04 23:19:22 -0600 |
commit | 514512dd016467618a2da5f6f0456c362bcad237 (patch) | |
tree | 8d2f53c51c0b4a4c3c2d6a1ec345a2e50ecb2280 | |
parent | 5ed9fab764d445f99aff4d42f350de1c68d5eb8c (diff) | |
download | pfsense-514512dd016467618a2da5f6f0456c362bcad237.zip pfsense-514512dd016467618a2da5f6f0456c362bcad237.tar.gz |
Don't try to launch 3gstats unless it's on a valid device.
-rw-r--r-- | etc/inc/interfaces.inc | 6 |
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; |