mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
commit
30f285bbbb
2 changed files with 5 additions and 2 deletions
|
@ -272,6 +272,9 @@ function wizard_add()
|
||||||
elseif typeintf == "" and device ~= "" and proto == "modemmanager" then
|
elseif typeintf == "" and device ~= "" and proto == "modemmanager" then
|
||||||
ucic:set("network",intf,"device",device_manager)
|
ucic:set("network",intf,"device",device_manager)
|
||||||
end
|
end
|
||||||
|
if proto == "pppoe" then
|
||||||
|
ucic:set("network",intf,"pppd_options","persist maxfail 0")
|
||||||
|
end
|
||||||
if proto ~= "other" then
|
if proto ~= "other" then
|
||||||
ucic:set("network",intf,"proto",proto)
|
ucic:set("network",intf,"proto",proto)
|
||||||
end
|
end
|
||||||
|
|
|
@ -511,8 +511,8 @@ return view.extend({
|
||||||
|
|
||||||
var new_ifnames = L.toArray(value);
|
var new_ifnames = L.toArray(value);
|
||||||
|
|
||||||
if (!value)
|
if (value == undefined)
|
||||||
new_ifnames.length = Math.max(new_ifnames.length, 1);
|
return;
|
||||||
|
|
||||||
old_ifnames.sort();
|
old_ifnames.sort();
|
||||||
new_ifnames.sort();
|
new_ifnames.sort();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue