mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix default device name numbering in UDEV rule
This commit is contained in:
parent
e4995314f0
commit
29c4c5a833
@ -67,7 +67,7 @@ if (isset($_POST['interface'])) {
|
|||||||
}
|
}
|
||||||
// create new entry
|
// create new entry
|
||||||
if ( ($type != $newtype) || !empty($name) ) { // new device type or new name
|
if ( ($type != $newtype) || !empty($name) ) { // new device type or new name
|
||||||
if (empty($name)) $name = $prefix."*";
|
if (empty($name)) $name = $prefix."%n";
|
||||||
if (!empty($mac)) $rule = preg_replace("/\\\$MAC\\\$/i", $mac, $rulenew);
|
if (!empty($mac)) $rule = preg_replace("/\\\$MAC\\\$/i", $mac, $rulenew);
|
||||||
if (!empty($vid)) $rule = preg_replace("/\\\$IDVENDOR\\\$/i", $vid, $rule);
|
if (!empty($vid)) $rule = preg_replace("/\\\$IDVENDOR\\\$/i", $vid, $rule);
|
||||||
if (!empty($pid)) $rule = preg_replace("/\\\$IDPRODUCT\\\$/i", $pid, $rule);
|
if (!empty($pid)) $rule = preg_replace("/\\\$IDPRODUCT\\\$/i", $pid, $rule);
|
||||||
|
Loading…
Reference in New Issue
Block a user