2017-07-19 20:36:47 +00:00
|
|
|
-- 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")
|
2018-04-04 12:19:23 +00:00
|
|
|
luci.sys.call("env -i /bin/ubus call network reload >/dev/null 2>&1")
|
2017-07-19 20:36:47 +00:00
|
|
|
end
|
|
|
|
http.redirect(luci.dispatcher.build_url("admin/services/travelmate/stations"))
|