mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Be a bit smarter about the stats interface for the huawei cards. Some of the K series have the stats on 0.2, the E series on 0.3
Some of the older E series only have 0.2 too. The new K3770 I got today is too new.
This commit is contained in:
parent
d23e157a06
commit
e313da37e6
@ -1729,7 +1729,9 @@ EOD;
|
||||
|
||||
foreach($ports as $port) {
|
||||
mwexec("/bin/ps auxww|grep \"{$interface}\" |grep \"[3]gstats\" | awk '{print $2}' |xargs kill");
|
||||
$mondev = substr(basename($port), 0, -1). "3";
|
||||
$mondev = substr(basename($port), 0, -1);
|
||||
$devlist = glob("/dev/{$mondev}?");
|
||||
$mondev = basename(end($devlist));
|
||||
log_error("Starting 3gstats.php on device '{$mondev}' for interface '{$interface}'");
|
||||
mwexec_bg("/usr/local/bin/3gstats.php {$mondev} {$interface}");
|
||||
}
|
||||
|
||||
@ -2469,7 +2469,7 @@ function huawei_mode_to_string($mode, $submode) {
|
||||
$submodes[4] = "WCDMA";
|
||||
$submodes[5] = "HSDPA";
|
||||
$submodes[6] = "HSUPA";
|
||||
$submodes[7] = "HDSPA+HSUPA";
|
||||
$submodes[7] = "HSDPA+HSUPA";
|
||||
$submodes[8] = "TD-SCDMA";
|
||||
$submodes[9] = "HSPA+";
|
||||
$string = "{$modes[$mode]}, {$submodes[$submode]} Mode";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user