diff options
author | Dirk Brenken <dev@brenken.org> | 2019-01-05 16:34:53 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2019-01-05 16:34:53 +0100 |
commit | 54d9cfbb29c0920e94df21466bd24b4d86c9f11d (patch) | |
tree | 4b7ad1599ee1b584fe1d684dac729d63b5328179 /applications/luci-app-banip/luasrc/controller | |
parent | 66c2bbc2790813a7889c0dd329131e5012fc83dd (diff) |
luci-app-banip: sync with release 0.1.0
* add new backup functionality, see
https://github.com/openwrt/packages/pull/7880 for details
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/luasrc/controller')
-rw-r--r-- | applications/luci-app-banip/luasrc/controller/banip.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-banip/luasrc/controller/banip.lua b/applications/luci-app-banip/luasrc/controller/banip.lua index e201295d5f..3d75bec4d0 100644 --- a/applications/luci-app-banip/luasrc/controller/banip.lua +++ b/applications/luci-app-banip/luasrc/controller/banip.lua @@ -1,4 +1,4 @@ --- Copyright 2018 Dirk Brenken (dev@brenken.org) +-- Copyright 2018-2019 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.banip", package.seeall) @@ -30,8 +30,8 @@ function index() end function ban_action(name) - if name == "do_refresh" then - luci.sys.call("/etc/init.d/banip start >/dev/null 2>&1") + if name == "do_reload" then + luci.sys.call("/etc/init.d/banip reload >/dev/null 2>&1") end luci.http.prepare_content("text/plain") luci.http.write("0") |