diff options
Diffstat (limited to 'src/ffluci/controller/admin')
-rw-r--r-- | src/ffluci/controller/admin/network.lua | 3 | ||||
-rw-r--r-- | src/ffluci/controller/admin/uci.lua | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ffluci/controller/admin/network.lua b/src/ffluci/controller/admin/network.lua index f76dce5555..2774dfdb02 100644 --- a/src/ffluci/controller/admin/network.lua +++ b/src/ffluci/controller/admin/network.lua @@ -5,6 +5,7 @@ menu = { order = 20, entries = { {action = "vlan", descr = "VLAN"}, - {action = "ifaces", descr = "Schnittstellen"} + {action = "ifaces", descr = "Schnittstellen"}, + {action = "ptp", descr = "PPPoE / PPTP"}, } }
\ No newline at end of file diff --git a/src/ffluci/controller/admin/uci.lua b/src/ffluci/controller/admin/uci.lua index db70eb6a63..a1eb0d7d72 100644 --- a/src/ffluci/controller/admin/uci.lua +++ b/src/ffluci/controller/admin/uci.lua @@ -10,7 +10,7 @@ function action_apply() -- Collect files to be applied for i, line in ipairs(ffluci.util.split(changes)) do - local r = line:match("^[^.]+") + local r = line:match("^-?([^.]+)") if r then apply[r] = true end @@ -41,7 +41,7 @@ function action_revert() -- Collect files to be reverted for i, line in ipairs(ffluci.util.split(changes)) do - local r = line:match("^[^.]+") + local r = line:match("^-?([^.]+)") if r then revert[r] = true end |