summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-05 19:29:24 +0200
committersmos <seth.mos@dds.nl>2012-06-05 21:39:34 +0200
commit8574d3516c54971c7d5839046982cd988cfc31ae (patch)
tree629aa544c24727840b442d5d683cbc05242792b1 /etc
parent227a014082951ea854b4217de4564330cae0c761 (diff)
downloadpfsense-8574d3516c54971c7d5839046982cd988cfc31ae.zip
pfsense-8574d3516c54971c7d5839046982cd988cfc31ae.tar.gz
Correct the variable to the modem device output.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index af6c686..cae3b3a 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1738,12 +1738,12 @@ EOD;
exec("usbconfig | egrep -ie '(huawei)'", $usbmodemoutput);
mwexec("/bin/ps auxww|grep \"{$interface}\" |grep \"[3]gstats\" | awk '{print $2}' |xargs kill");
foreach($ports as $port) {
- if(stristr("huawei", implode("\n", $ouput))) {
+ if(stristr("huawei", implode("\n", $usbmodemoutput))) {
$mondev = substr(basename($port), 0, -1);
$devlist = glob("/dev/{$mondev}?");
$mondev = basename(end($devlist));
}
- if(stristr("zte", implode("\n", $ouput))) {
+ if(stristr("zte", implode("\n", $usbmodemoutput))) {
$mondev = substr(basename($port), 0, -1) . "1";
}
log_error("Starting 3gstats.php on device '{$mondev}' for interface '{$interface}'");
OpenPOWER on IntegriCloud