From 96cf73a599b24e569657eb1fdda25e2596c4bfbd Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Sat, 5 Jan 2019 12:20:09 -0500 Subject: luci-app-rp-pppoe-server: Add ability to create uci sections Currently if no non-commented uci sections exist in the config then it's impossible to create a config from LuCI. Fix that, which also allows what the initscript does, which is multiple instances. While we're at it create the translation template. Closes: #2431 Signed-off-by: Daniel F. Dickinson --- .../luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua') diff --git a/applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua b/applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua index ef15ed6127..e967ce6283 100644 --- a/applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua +++ b/applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua @@ -9,7 +9,7 @@ m = Map("pppoe", translate("Roaring Penguin PPPoE Server"), translate("PPPoE Server Configuration")) s = m:section(TypedSection, "pppoe_server", translate("Server Configuration")) -s.addremove = false +s.addremove = true s.anonymous = true o = s:option(Value, "interface", translate("Interface"), translate("Interface on which to listen.")) -- cgit v1.2.3