summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_delete.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_delete.lua')
-rw-r--r--applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_delete.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_delete.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_delete.lua
deleted file mode 100644
index 0a7678f7e..000000000
--- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_delete.lua
+++ /dev/null
@@ -1,14 +0,0 @@
--- 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")
- luci.sys.call("env -i /bin/ubus call network reload >/dev/null 2>&1")
-end
-http.redirect(luci.dispatcher.build_url("admin/services/travelmate/stations"))