summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/controller
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffluci/controller')
-rw-r--r--src/ffluci/controller/admin/network.lua3
-rw-r--r--src/ffluci/controller/admin/uci.lua4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ffluci/controller/admin/network.lua b/src/ffluci/controller/admin/network.lua
index f76dce555..2774dfdb0 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 db70eb6a6..a1eb0d7d7 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