mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Don't try to launch 3gstats unless it's on a valid device.
This commit is contained in:
parent
a0b470eefd
commit
d69414feef
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user