summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/controller/admin
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-27 23:14:01 +0000
committerSteven Barth <steven@midlink.org>2008-03-27 23:14:01 +0000
commit077db659bbcb7cee6bbc4c4dbaed9776261190a0 (patch)
tree0128ec76baf8112f2dd6538e0c5a9448cdf7d91a /src/ffluci/controller/admin
parent3f1064b91949741af53eb1d198e228f768abaea8 (diff)
* Major CBI improvements
Diffstat (limited to 'src/ffluci/controller/admin')
-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 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