mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add option to enable/disable interface rename
This commit is contained in:
parent
db0ba4af80
commit
66f8f2b2fe
3 changed files with 19 additions and 3 deletions
|
@ -864,6 +864,10 @@ function settings_add()
|
|||
local disablegwping = luci.http.formvalue("disablegwping") or "0"
|
||||
ucic:set("openmptcprouter","settings","disablegwping",disablegwping)
|
||||
|
||||
-- Enable/disable renaming intf
|
||||
local disableintfrename = luci.http.formvalue("disableintfrename") or "0"
|
||||
ucic:set("openmptcprouter","settings","disableintfrename",disableintfrename)
|
||||
|
||||
-- Enable/disable default gateway
|
||||
local disabledefaultgw = luci.http.formvalue("disabledefaultgw") or "1"
|
||||
ucic:set("openmptcprouter","settings","defaultgw",disabledefaultgw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue