mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix unknown device type for mobile modems (ppp)
This commit is contained in:
parent
e4995314f0
commit
422ce9dd3b
@ -184,7 +184,7 @@ function getClientType($dev) {
|
||||
$type=preg_only_match("/DEVTYPE=(\w*)/i",$udevadm);
|
||||
}
|
||||
}
|
||||
if (empty($type) || array_search($type, $_SESSION["net-device-name-prefix"]) === false) {
|
||||
if (empty($type) || $type == "none" || array_search($type, $_SESSION["net-device-name-prefix"]) === false) {
|
||||
// no device type yet -> get device type from device name
|
||||
if (preg_match("/^(\w+)[0-9]$/",$dev,$nam) === 1) $nam=$nam[1];
|
||||
else $nam="none";
|
||||
|
Loading…
Reference in New Issue
Block a user