luci/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_delete.lua
Dirk Brenken b110746b98 luci-app-travelmate: small bugfixes & optimizations
* various small bugfixes and optimizations

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-08-03 17:04:58 +02:00

13 lines
416 B
Lua

-- Copyright 2017 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local uci = require("luci.model.uci").cursor()
local http = require("luci.http")
local cfg = http.formvalue("cfg")
if cfg ~= nil then
uci:delete("wireless", cfg)
uci:save("wireless")
uci:commit("wireless")
end
http.redirect(luci.dispatcher.build_url("admin/services/travelmate/stations"))