1 -- Copyright 2017 Dirk Brenken (dev@brenken.org)
2 -- This is free software, licensed under the Apache License, Version 2.0
4 local uci = require("luci.model.uci").cursor()
5 local http = require("luci.http")
6 local cfg = http.formvalue("cfg")
7 local pos = http.formvalue("pos")
8 local dir = http.formvalue("dir")
13 uci:reorder("wireless", cfg, pos)
14 elseif dir == "down" then
16 uci:reorder("wireless", cfg, pos)
19 uci:commit("wireless")
22 http.redirect(luci.dispatcher.build_url("admin/services/travelmate/stations"))