luci-app-simple-adblock: bugfix: identify nft set support 6053/head
authorStan Grishin <stangri@melmac.ca>
Mon, 24 Oct 2022 17:18:43 +0000 (17:18 +0000)
committerStan Grishin <stangri@melmac.ca>
Mon, 24 Oct 2022 17:20:01 +0000 (17:20 +0000)
Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit 4dc98fefcac468917227bd9037bf6a71cbed9b67)

applications/luci-app-simple-adblock/Makefile
applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua
applications/luci-app-simple-adblock/po/templates/simple-adblock.pot

index 9144c9a252ef191ab827c5c214d0d89cd001975a..93779c2fec8786b5f3b9ce91ca3d3e6706754eae 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
-PKG_VERSION:=1.9.0-1
+PKG_VERSION:=1.9.2-3
 
 LUCI_TITLE:=Simple Adblock Web UI
 LUCI_DESCRIPTION:=Provides Web UI for simple-adblock service.
index 00674ab2673ec69612b560ae59fb86996979d19c..ec047420a80f26e99e6724b78e7147b1d303171c 100644 (file)
@@ -52,7 +52,7 @@ function checkIpset()
 end
 
 function checkNftset() 
-       if sys.call("command -v nft") == 0 then
+       if sys.call("command -v nft >/dev/null 2>&1") == 0 then
                return true
        else
                return false
@@ -319,10 +319,10 @@ if checkDnsmasq() then
        dns:value("dnsmasq.addnhosts", translate("DNSMASQ Additional Hosts"))
        dns:value("dnsmasq.conf", translate("DNSMASQ Config"))
        if checkDnsmasqIpset() then
-               dns:value("dnsmasq.ipset", translate("DNSMASQ IP Set"))
+               dns:value("dnsmasq.ipset", translate("DNSMASQ Ipset"))
        end
        if checkDnsmasqNftset() then
-               dns:value("dnsmasq.nftset", translate("DNSMASQ NFT Set"))
+               dns:value("dnsmasq.nftset", translate("DNSMASQ Nft Set"))
        end
        dns:value("dnsmasq.servers", translate("DNSMASQ Servers File"))
 end
index 21241353f0a7a68c8a0bddecbf3641ded975a6b0..6244cb15fdecdf59830c667861f7fcd609701bc7 100644 (file)
@@ -103,11 +103,11 @@ msgid "DNSMASQ Config"
 msgstr ""
 
 #: applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua:322
-msgid "DNSMASQ IP Set"
+msgid "DNSMASQ Ipset"
 msgstr ""
 
 #: applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua:325
-msgid "DNSMASQ NFT Set"
+msgid "DNSMASQ Nft Set"
 msgstr ""
 
 #: applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua:327
@@ -289,7 +289,6 @@ msgid "Service Status [%s %s]"
 msgstr ""
 
 #: applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua:4
-#: applications/luci-app-simple-adblock/root/usr/share/luci/menu.d/luci-app-simple-adblock.json:3
 msgid "Simple AdBlock"
 msgstr ""