diff options
Diffstat (limited to 'applications/luci-app-adblock-fast')
9 files changed, 310 insertions, 97 deletions
diff --git a/applications/luci-app-adblock-fast/Makefile b/applications/luci-app-adblock-fast/Makefile index a1666f199e..cb7b6ed6c6 100644 --- a/applications/luci-app-adblock-fast/Makefile +++ b/applications/luci-app-adblock-fast/Makefile @@ -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.0.0-6 +PKG_VERSION:=1.0.0-7 LUCI_TITLE:=AdBlock-Fast Web UI LUCI_DESCRIPTION:=Provides Web UI for adblock-fast service. diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js index 89dcb8846e..9b845e3ff8 100644 --- a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js +++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js @@ -328,7 +328,7 @@ var status = baseclass.extend({ _("Start") ); - var btn_action = E( + var btn_action_dl = E( "button", { class: "btn cbi-button cbi-button-apply", @@ -338,13 +338,28 @@ var status = baseclass.extend({ E( "p", { class: "spinning" }, - _("Force re-downloading %s block lists").format(pkg.Name) + _("Force redownloading %s block lists").format(pkg.Name) ), ]); return RPC.setInitAction(pkg.Name, "dl"); }, }, - _("Force Re-Download") + _("Redownload") + ); + + var btn_action_pause = E( + "button", + { + class: "btn cbi-button cbi-button-apply", + disabled: true, + click: function (ev) { + ui.showModal(null, [ + E("p", { class: "spinning" }, _("Pausing %s").format(pkg.Name)), + ]); + return RPC.setInitAction(pkg.Name, "pause"); + }, + }, + _("Pause") ); var btn_stop = E( @@ -410,17 +425,20 @@ var status = baseclass.extend({ switch (reply.status.status) { case "statusSuccess": btn_start.disabled = true; - btn_action.disabled = false; + btn_action_dl.disabled = false; + btn_action_pause.disabled = false; btn_stop.disabled = false; break; case "statusStopped": btn_start.disabled = false; - btn_action.disabled = true; + btn_action_dl.disabled = true; + btn_action_pause.disabled = true; btn_stop.disabled = true; break; default: btn_start.disabled = false; - btn_action.disabled = true; + btn_action_dl.disabled = true; + btn_action_pause.disabled = true; btn_stop.disabled = false; btn_enable.disabled = true; btn_disable.disabled = true; @@ -428,7 +446,8 @@ var status = baseclass.extend({ } } else { btn_start.disabled = true; - btn_action.disabled = true; + btn_action_dl.disabled = true; + btn_action_pause.disabled = true; btn_stop.disabled = true; btn_enable.disabled = false; btn_disable.disabled = true; @@ -442,8 +461,10 @@ var status = baseclass.extend({ ); var buttonsText = E("div", {}, [ btn_start, + // btn_gap, + // btn_action_pause, btn_gap, - btn_action, + btn_action_dl, btn_gap, btn_stop, btn_gap_long, diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js index ce9041e8f8..ab36223983 100644 --- a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js +++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js @@ -378,7 +378,7 @@ return view.extend({ s3.anonymous = true; s3.addremove = true; - o = s3.option(form.DummyValue, "_size", "Size"); + o = s3.option(form.DummyValue, "_size", _("Size")); o.modalonly = false; o.cfgvalue = function (section_id) { let url = uci.get(pkg.Name, section_id, "url"); @@ -399,6 +399,10 @@ return view.extend({ o.value("allow", _("Allow")); o.value("block", _("Block")); o.default = "block"; + o.textvalue = function (section_id) { + var val = this.cfgvalue(section_id); + return val == "allow" ? _("Allow") : _("Block"); + }; o = s3.option(form.Value, "url", _("URL")); o.optional = false; diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js new file mode 100644 index 0000000000..5dd3d9079c --- /dev/null +++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js @@ -0,0 +1,108 @@ +"require ui"; +"require rpc"; +"require form"; +"require baseclass"; + +var pkg = { + get Name() { + return "adblock-fast"; + }, + get URL() { + return "https://docs.openwrt.melmac.net/" + pkg.Name + "/"; + }, +}; + +var getInitStatus = rpc.declare({ + object: "luci." + pkg.Name, + method: "getInitStatus", + params: ["name"], +}); + +return baseclass.extend({ + title: _("AdBlock-Fast"), + + load: function () { + return Promise.all([getInitStatus(pkg.Name)]); + }, + + render: function (data) { + var reply = { + status: (data[0] && data[0][pkg.Name]) || { + enabled: false, + status: null, + running: null, + version: null, + errors: [], + warnings: [], + force_dns_active: null, + force_dns_ports: [], + entries: null, + dns: null, + outputFile: null, + outputCache: null, + outputGzip: null, + outputFileExists: null, + outputCacheExists: null, + outputGzipExists: null, + leds: [], + }, + }; + var statusTable = { + statusNoInstall: _("%s is not installed or not found").format(pkg.Name), + statusStopped: _("Stopped"), + statusStarting: _("Starting"), + statusProcessing: _("Processing lists"), + statusRestarting: _("Restarting"), + statusForceReloading: _("Force Reloading"), + statusDownloading: _("Downloading lists"), + statusError: _("Error"), + statusWarning: _("Warning"), + statusFail: _("Fail"), + statusSuccess: _("Active"), + }; + + var cacheText; + if (reply.status.outputCacheExists) { + cacheText = _("Cache file"); + } else if (reply.status.outputGzipExists) { + cacheText = _("Compressed cache"); + } + var forceDnsText = ""; + if (reply.status.force_dns_active) { + reply.status.force_dns_ports.forEach((element) => { + forceDnsText += element + " "; + }); + } else { + forceDnsText = "-"; + } + + var table = E( + "table", + { class: "table", id: "adblock-fast_status_table" }, + [ + E("tr", { class: "tr table-titles" }, [ + E("th", { class: "th" }, _("Status")), + E("th", { class: "th" }, _("Version")), + E("th", { class: "th" }, _("DNS Service")), + E("th", { class: "th" }, _("Blocked Domains")), + E("th", { class: "th" }, _("Cache")), + E("th", { class: "th" }, _("Force DNS Ports")), + ]), + E("tr", { class: "tr" }, [ + E( + "td", + { class: "td" }, + statusTable[reply.status.status] || _("Unknown") + ), + E("td", { class: "td" }, reply.status.version || _("-")), + E("td", { class: "td" }, reply.status.dns || _("-")), + E("td", { class: "td" }, reply.status.entries || _("-")), + E("td", { class: "td" }, cacheText || _("-")), + E("td", { class: "td" }, forceDnsText || _("-")), + ]), + ] + ); + + return table; + }, +}); diff --git a/applications/luci-app-adblock-fast/po/da/adblock-fast.po b/applications/luci-app-adblock-fast/po/da/adblock-fast.po index 3423f739fa..e2f7c5c655 100644 --- a/applications/luci-app-adblock-fast/po/da/adblock-fast.po +++ b/applications/luci-app-adblock-fast/po/da/adblock-fast.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"PO-Revision-Date: 2023-10-05 19:12+0000\n" +"PO-Revision-Date: 2023-10-27 08:55+0000\n" "Last-Translator: drax red <drax@outlook.dk>\n" "Language-Team: Danish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsadblock-fast/da/>\n" @@ -8,7 +8,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 5.1-dev\n" +"X-Generator: Weblate 5.2-dev\n" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:223 msgid "%s is currently disabled" @@ -213,7 +213,7 @@ msgstr "Fejl" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:293 msgid "Errors encountered, please check the %sREADME%s" -msgstr "" +msgstr "Fejl, der opstår, skal du kontrollere %sREADME%s" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:117 msgid "Fail" @@ -245,7 +245,7 @@ msgstr "Detaljeret for at oprette output/cache/gzip fil mappe" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:278 msgid "Failed to detect format %s" -msgstr "" +msgstr "Detaljeret at opdage format %s" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:271 msgid "Failed to download %s" @@ -273,7 +273,7 @@ msgstr "Detaljeret for at optimere datafil" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:273 msgid "Failed to parse %s" -msgstr "" +msgstr "undlod at parse" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:272 msgid "Failed to parse Config Update file" @@ -394,7 +394,7 @@ msgstr "Ingen HTTPS/SSL support på enheden" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:280 msgid "No blocked list URLs nor blocked-domains enabled" -msgstr "" +msgstr "Ingen blokeret liste webadresser eller blokerede domæner aktiveret" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:176 msgid "Not installed or not found" diff --git a/applications/luci-app-adblock-fast/po/pl/adblock-fast.po b/applications/luci-app-adblock-fast/po/pl/adblock-fast.po index d670bc5a78..2ef4144140 100644 --- a/applications/luci-app-adblock-fast/po/pl/adblock-fast.po +++ b/applications/luci-app-adblock-fast/po/pl/adblock-fast.po @@ -1,7 +1,7 @@ msgid "" msgstr "" -"PO-Revision-Date: 2023-10-14 00:03+0000\n" -"Last-Translator: Xtremo3 <a.lewicki95@gmail.com>\n" +"PO-Revision-Date: 2023-10-25 20:42+0000\n" +"Last-Translator: Matthaiks <kitynska@gmail.com>\n" "Language-Team: Polish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsadblock-fast/pl/>\n" "Language: pl\n" @@ -9,7 +9,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 5.1-dev\n" +"X-Generator: Weblate 5.1.1\n" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:223 msgid "%s is currently disabled" @@ -206,7 +206,7 @@ msgstr "Włącz debugowanie" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:339 msgid "Enables debug output to /tmp/adblock-fast.log." -msgstr "Włącza wyjście debugowania do pliku /tmp/adblock-fast.log." +msgstr "Włącza dane wyjściowe debugowania do pliku /tmp/adblock-fast.log." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:379 msgid "Enabling %s service" @@ -369,11 +369,11 @@ msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:358 msgid "Individual domains to be allowed." -msgstr "Poszczególne domeny mają być dozwolone." +msgstr "Poszczególne domeny, które mają być dozwolone." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:366 msgid "Individual domains to be blocked." -msgstr "Poszczególne domeny, które mają zostać zablokowane." +msgstr "Poszczególne domeny, które mają być zablokowane." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:221 msgid "LED to indicate status" @@ -415,13 +415,14 @@ msgstr "Ustawienia szczegółowości danych wyjściowych" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:237 msgid "Perform config update before downloading the block/allow-lists." msgstr "" -"Wykonaj aktualizację konfiguracji przed pobraniem list blokowania/zezwoleń." +"Wykonaj aktualizację konfiguracji przed pobraniem list dozwolonych/" +"zablokowanych." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:223 msgid "Pick the LED not already used in %sSystem LED Configuration%s." msgstr "" -"Wybierz diodę LED, która nie jest jeszcze używana w programie %sKonfiguracja " -"diody LED systemu%s." +"Wybierz diodę LED, która nie jest jeszcze używana na stronie %sKonfiguracja " +"diod LED%s." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:64 #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:69 @@ -512,7 +513,7 @@ msgstr "Przechowuj skompresowany plik pamięci podręcznej w routerze" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:211 msgid "Suppress output" -msgstr "Pomiń wyjście" +msgstr "Pomiń dane wyjściowe" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:239 msgid "The %s failed to discover WAN gateway" @@ -555,7 +556,7 @@ msgstr "Adres URL" msgid "" "URL to the external dnsmasq config file, see the %sREADME%s for details." msgstr "" -"Adres URL do zewnętrznego pliku konfiguracyjnego dnsmasq, zobacz %sREADME%s, " +"Adres URL do zewnętrznego pliku konfiguracyjnego Dnsmasq, zobacz %sREADME%s, " "aby uzyskać szczegółowe informacje." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:374 @@ -570,7 +571,7 @@ msgstr "Nieznany" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:148 msgid "Use AdBlocking on the dnsmasq instance(s)" -msgstr "Użyj blokowania reklam w instancjach dnsmasq" +msgstr "Użyj blokowania reklam w instancjach Dnsmasq" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:189 msgid "" @@ -585,7 +586,7 @@ msgstr "Używaj jednoczesnego przetwarzania" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:213 msgid "Verbose output" -msgstr "Pełne wyjście" +msgstr "Pełne dane wyjściowe" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:128 msgid "Version %s" diff --git a/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot b/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot index 58d4800b17..fe609fe0d1 100644 --- a/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot +++ b/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot @@ -6,14 +6,24 @@ msgid "%s is currently disabled" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:106 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:51 msgid "%s is not installed or not found" msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:97 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:98 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:99 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:100 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:101 +msgid "-" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:398 msgid "Action" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:118 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:61 msgid "Active" msgstr "" @@ -29,6 +39,10 @@ msgstr "" msgid "AdBlock on all instances" msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:22 +msgid "AdBlock-Fast" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:349 msgid "AdBlock-Fast - Allowed and Blocked Domains" msgstr "" @@ -58,6 +72,7 @@ msgid "Advanced Configuration" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:399 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:404 msgid "Allow" msgstr "" @@ -79,10 +94,12 @@ msgid "Basic Configuration" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:400 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:404 msgid "Block" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:365 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:87 msgid "Blocked Domains" msgstr "" @@ -90,10 +107,22 @@ msgstr "" msgid "Blocking %s domains (with %s)." msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:88 +msgid "Cache" +msgstr "" + +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:66 +msgid "Cache file" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:160 msgid "Cache file found." msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:68 +msgid "Compressed cache" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:139 msgid "Compressed cache file created." msgstr "" @@ -119,6 +148,7 @@ msgid "Curl maximum file size (in bytes)" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:111 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:86 msgid "DNS Service" msgstr "" @@ -135,7 +165,7 @@ msgid "" "Directory for compressed cache file of block-list in the persistent memory." msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:404 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:419 #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:239 msgid "Disable" msgstr "" @@ -148,7 +178,7 @@ msgstr "" msgid "Disabled" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:398 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:413 msgid "Disabling %s service" msgstr "" @@ -173,10 +203,11 @@ msgid "Download time-out (in seconds)" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:114 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:57 msgid "Downloading lists" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:385 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:400 #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:240 #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:394 msgid "Enable" @@ -191,11 +222,12 @@ msgstr "" msgid "Enables debug output to /tmp/adblock-fast.log." msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:379 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:394 msgid "Enabling %s service" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:115 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:58 msgid "Error" msgstr "" @@ -204,6 +236,7 @@ msgid "Errors encountered, please check the %sREADME%s" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:117 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:60 msgid "Fail" msgstr "" @@ -295,15 +328,16 @@ msgstr "" msgid "Failed to unpack compressed cache" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:142 -msgid "Force DNS ports:" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:89 +msgid "Force DNS Ports" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:347 -msgid "Force Re-Download" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:142 +msgid "Force DNS ports:" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:113 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:56 msgid "Force Reloading" msgstr "" @@ -316,7 +350,7 @@ msgid "Force Router DNS server to all local devices" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:341 -msgid "Force re-downloading %s block lists" +msgid "Force redownloading %s block lists" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:198 @@ -385,6 +419,14 @@ msgstr "" msgid "Output Verbosity Setting" msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:362 +msgid "Pause" +msgstr "" + +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:357 +msgid "Pausing %s" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:237 msgid "Perform config update before downloading the block/allow-lists." msgstr "" @@ -404,14 +446,20 @@ msgid "Please note that %s is not supported on this system." msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:111 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:54 msgid "Processing lists" msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:347 +msgid "Redownload" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:112 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:55 msgid "Restarting" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:441 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:460 msgid "Service Control" msgstr "" @@ -431,6 +479,10 @@ msgstr "" msgid "Simultaneous processing" msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:381 +msgid "Size" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:391 msgid "Size: %s" msgstr "" @@ -448,6 +500,7 @@ msgid "Start" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:110 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:53 msgid "Starting" msgstr "" @@ -455,7 +508,11 @@ msgstr "" msgid "Starting %s service" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:366 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:84 +msgid "Status" +msgstr "" + +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:381 msgid "Stop" msgstr "" @@ -464,10 +521,11 @@ msgid "Stop the download if it is stalled for set number of seconds." msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:109 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:52 msgid "Stopped" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:360 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:375 msgid "Stopping %s service" msgstr "" @@ -509,7 +567,7 @@ msgstr "" msgid "The dnsmasq nft sets support is enabled, but nft is not installed" msgstr "" -#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:403 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:407 msgid "URL" msgstr "" @@ -523,6 +581,7 @@ msgid "URLs to file(s) containing lists to be allowed or blocked." msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:385 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:95 msgid "Unknown" msgstr "" @@ -543,11 +602,16 @@ msgstr "" msgid "Verbose output" msgstr "" +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:85 +msgid "Version" +msgstr "" + #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:128 msgid "Version %s" msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:116 +#: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/status/include/70_adblock-fast.js:59 msgid "Warning" msgstr "" diff --git a/applications/luci-app-adblock-fast/po/tr/adblock-fast.po b/applications/luci-app-adblock-fast/po/tr/adblock-fast.po index 0db6510af9..9f651e80fd 100644 --- a/applications/luci-app-adblock-fast/po/tr/adblock-fast.po +++ b/applications/luci-app-adblock-fast/po/tr/adblock-fast.po @@ -1,14 +1,14 @@ msgid "" msgstr "" -"PO-Revision-Date: 2022-12-27 19:24+0000\n" -"Last-Translator: Oğuz Ersen <oguz@ersen.moe>\n" +"PO-Revision-Date: 2023-10-30 06:43+0000\n" +"Last-Translator: semih <semiht@gmail.com>\n" "Language-Team: Turkish <https://hosted.weblate.org/projects/openwrt/" -"luciapplicationssimple-adblock/tr/>\n" +"luciapplicationsadblock-fast/tr/>\n" "Language: tr\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.15.1-dev\n" +"X-Generator: Weblate 5.2-dev\n" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:223 msgid "%s is currently disabled" @@ -20,7 +20,7 @@ msgstr "%s yüklenmemiş ya da bulunamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:398 msgid "Action" -msgstr "" +msgstr "Aksiyon" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:118 msgid "Active" @@ -28,31 +28,31 @@ msgstr "Etkin" #: applications/luci-app-adblock-fast/root/usr/share/luci/menu.d/luci-app-adblock-fast.json:3 msgid "AdBlock Fast" -msgstr "" +msgstr "AdBlock Fast" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:185 msgid "AdBlock on %s only" -msgstr "" +msgstr "Yalnızca %s'de AdBlock" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:156 msgid "AdBlock on all instances" -msgstr "" +msgstr "Tüm örneklerde AdBlock" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:349 msgid "AdBlock-Fast - Allowed and Blocked Domains" -msgstr "" +msgstr "AdBlock-Fast - İzin Verilen ve Engellenen Alan Adları" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:373 msgid "AdBlock-Fast - Allowed and Blocked Lists URLs" -msgstr "" +msgstr "AdBlock-Fast - İzin Verilen ve Engellenen URL'leri Listeler" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:50 msgid "AdBlock-Fast - Configuration" -msgstr "" +msgstr "AdBlock-Fast - Yapılandırma" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:121 msgid "AdBlock-Fast - Status" -msgstr "" +msgstr "AdBlock-Fast - Durum" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:251 msgid "Add IPv6 entries" @@ -68,7 +68,7 @@ msgstr "Gelişmiş Yapılandırma" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:399 msgid "Allow" -msgstr "" +msgstr "İzin ver" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:357 msgid "Allowed Domains" @@ -90,7 +90,7 @@ msgstr "Temel Yapılandırma" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:400 msgid "Block" -msgstr "" +msgstr "Engelle" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:365 msgid "Blocked Domains" @@ -138,12 +138,13 @@ msgstr "DNS çözümleme seçeneği, ayrıntılar için %sREADME%s bakın." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:323 msgid "Directory for compressed cache file" -msgstr "" +msgstr "Sıkıştırılmış önbellek dosyası dizini" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:325 msgid "" "Directory for compressed cache file of block-list in the persistent memory." msgstr "" +"Kalıcı bellekteki blok listesinin sıkıştırılmış önbellek dosyası için dizin." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:404 #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:239 @@ -156,7 +157,7 @@ msgstr "Hata Ayıklamayı Devre Dışı Bırak" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:156 msgid "Disabled" -msgstr "" +msgstr "Devre dışı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:398 msgid "Disabling %s service" @@ -199,7 +200,7 @@ msgstr "Hata ayıklamayı etkinleştir" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:339 msgid "Enables debug output to /tmp/adblock-fast.log." -msgstr "" +msgstr "/tmp/adblock-fast.log dosyasına hata ayıklama çıktısını etkinleştirir." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:379 msgid "Enabling %s service" @@ -211,7 +212,7 @@ msgstr "Hata" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:293 msgid "Errors encountered, please check the %sREADME%s" -msgstr "" +msgstr "Hatalarla karşılaşıldı, lütfen %sREADME%s dosyasını kontrol edin" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:117 msgid "Fail" @@ -219,91 +220,93 @@ msgstr "Başarısız" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:246 msgid "Failed to access shared memory" -msgstr "" +msgstr "Paylaşılan belleğe erişilemedi" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:242 msgid "Failed to create '%s' file" -msgstr "" +msgstr "'%s' dosyası oluşturulamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:264 msgid "Failed to create block-list or restart DNS resolver" msgstr "" +"Engellenenler listesi oluşturulamadı veya DNS çözümleyici yeniden " +"başlatılamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:255 msgid "Failed to create compressed cache" -msgstr "" +msgstr "Sıkıştırılmış önbellek oluşturulamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:241 msgid "Failed to create directory for %s file" -msgstr "" +msgstr "%s dosyası için dizin oluşturulamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:276 msgid "Failed to create output/cache/gzip file directory" -msgstr "" +msgstr "Çıktı/önbellek/gzip dosya dizini oluşturulamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:278 msgid "Failed to detect format %s" -msgstr "" +msgstr "%s biçimi algılanamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:271 msgid "Failed to download %s" -msgstr "" +msgstr "%s indirilemedi" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:269 msgid "Failed to download Config Update file" -msgstr "" +msgstr "Yapılandırma Güncelleme dosyası indirilemedi" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:250 msgid "Failed to format data file" -msgstr "" +msgstr "Veri dosyası biçimlendirilemedi" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:259 msgid "Failed to move '%s' to '%s'" -msgstr "" +msgstr "'%s', '%s' konumuna taşınamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:252 msgid "Failed to move temporary data file to '%s'" -msgstr "" +msgstr "Geçici veri dosyası '%s' dizinine taşınamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:248 msgid "Failed to optimize data file" -msgstr "" +msgstr "Veri dosyası optimize edilemedi" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:273 msgid "Failed to parse %s" -msgstr "" +msgstr "%s ayrıştırılamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:272 msgid "Failed to parse Config Update file" -msgstr "" +msgstr "Yapılandırma Güncelleme dosyası ayrıştırılamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:249 msgid "Failed to process allow-list" -msgstr "" +msgstr "İzin verilenler listesi işlenemedi" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:267 msgid "Failed to reload/restart DNS resolver" -msgstr "" +msgstr "DNS çözümleyici yeniden yüklenemedi/yeniden başlatılamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:257 msgid "Failed to remove temporary files" -msgstr "" +msgstr "Geçici dosyalar kaldırılamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:245 msgid "Failed to restart/reload DNS resolver" -msgstr "" +msgstr "DNS çözümleyici yeniden başlatılamadı/yeniden yüklenemedi" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:247 msgid "Failed to sort data file" -msgstr "" +msgstr "Veri dosyası sıralanamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:266 msgid "Failed to stop %s" -msgstr "" +msgstr "%s durdurulamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:258 msgid "Failed to unpack compressed cache" -msgstr "" +msgstr "Sıkıştırılmış önbellek paketi açılamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:142 msgid "Force DNS ports:" @@ -337,7 +340,7 @@ msgstr "" #: applications/luci-app-adblock-fast/root/usr/share/rpcd/acl.d/luci-app-adblock-fast.json:3 msgid "Grant UCI and file access for luci-app-adblock-fast" -msgstr "" +msgstr "Luci-app-adblock-fast için UCI ve dosya erişimi yetkisi verin" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:247 msgid "IPv6 Support" @@ -385,19 +388,19 @@ msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:187 msgid "No AdBlock on dnsmasq" -msgstr "" +msgstr "dnsmasq'ta AdBlock yok" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:274 msgid "No HTTPS/SSL support on device" -msgstr "" +msgstr "Cihazda HTTPS/SSL desteği yok" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:280 msgid "No blocked list URLs nor blocked-domains enabled" -msgstr "" +msgstr "Engellenen liste URL'si veya engellenen alan adı etkin değil" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:176 msgid "Not installed or not found" -msgstr "Kurulu değil veya bulunamadı" +msgstr "Yüklü değil veya bulunamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:208 msgid "Output Verbosity Setting" @@ -453,7 +456,7 @@ msgstr "Eşzamanlı işleme" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:391 msgid "Size: %s" -msgstr "" +msgstr "Boyut: %s" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:212 msgid "Some output" @@ -461,7 +464,7 @@ msgstr "Biraz çıktı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:192 msgid "Some recommended packages are missing" -msgstr "" +msgstr "Önerilen paketlerden bazıları eksik" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:328 msgid "Start" @@ -477,7 +480,7 @@ msgstr "%s hizmeti başlatılıyor" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:366 msgid "Stop" -msgstr "Durdur" +msgstr "Dur" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:263 msgid "Stop the download if it is stalled for set number of seconds." @@ -505,33 +508,39 @@ msgstr "Çıkışı bastır" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:239 msgid "The %s failed to discover WAN gateway" -msgstr "" +msgstr "%s WAN ağ geçidini bulamadı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:227 msgid "" "The dnsmasq ipset support is enabled, but dnsmasq is either not installed or " "installed dnsmasq does not support ipset" msgstr "" +"Dnsmasq ipset desteği etkin, ancak dnsmasq yüklü değil veya yüklü dnsmasq " +"ipset'i desteklemiyor" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:230 msgid "" "The dnsmasq ipset support is enabled, but ipset is either not installed or " "installed ipset does not support '%s' type" msgstr "" +"Dnsmasq ipset desteği etkin, ancak ipset ya kurulu değil ya da kurulu ipset " +"'%s' tipini desteklemiyor" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:233 msgid "" "The dnsmasq nft set support is enabled, but dnsmasq is either not installed " "or installed dnsmasq does not support nft set" msgstr "" +"Dnsmasq nft set desteği etkin, ancak dnsmasq yüklü değil veya yüklü dnsmasq " +"nft setini desteklemiyor" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:236 msgid "The dnsmasq nft sets support is enabled, but nft is not installed" -msgstr "" +msgstr "Dnsmasq nft setleri desteği etkin ancak nft yüklü değil" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:403 msgid "URL" -msgstr "" +msgstr "URL" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:136 msgid "" @@ -543,19 +552,22 @@ msgstr "" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:374 msgid "URLs to file(s) containing lists to be allowed or blocked." msgstr "" +"İzin verilecek veya engellenecek listeleri içeren dosya(lar)ın URL'leri." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:385 msgid "Unknown" -msgstr "" +msgstr "Bilinmeyen" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:148 msgid "Use AdBlocking on the dnsmasq instance(s)" -msgstr "" +msgstr "Şu dnsmasq örneklerinde AdBlocking kullan" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:189 msgid "" "Use of external dnsmasq config file detected, please set '%s' option to '%s'" msgstr "" +"Harici dnsmasq yapılandırma dosyası kullanımı algılandı, lütfen '%s' " +"seçeneğini '%s' olarak ayarlayın" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:303 msgid "Use simultaneous processing" @@ -567,7 +579,7 @@ msgstr "Ayrıntılı çıktı" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:128 msgid "Version %s" -msgstr "" +msgstr "Sürüm %s" #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js:116 msgid "Warning" @@ -578,6 +590,8 @@ msgid "" "You can limit the AdBlocking to a specific dnsmasq instance(s) (%smore " "information%s)." msgstr "" +"Reklam Engellemeyi belirli bir dnsmasq örneğiyle (%sdaha fazla bilgi%s) " +"sınırlandırabilirsiniz." #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:115 msgid "dnsmasq additional hosts" diff --git a/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast b/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast index be4d0a320b..6f282678b1 100755 --- a/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast +++ b/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast @@ -11,6 +11,7 @@ # ubus -S call luci.adblock-fast getPlatformSupport '{"name": "adblock-fast" }' # ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "start" }' # ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "dl" }' +# ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "pause" }' # ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "stop" }' . /lib/functions.sh @@ -135,10 +136,10 @@ set_init_action() { cmd="uci -q set ${name}.config.enabled=1 && uci commit $name";; disable) cmd="uci -q set ${name}.config.enabled=0 && uci commit $name";; - start|stop|reload|restart|dl) + start|stop|reload|restart|dl|pause) cmd="/etc/init.d/${name} ${action}";; esac - if [ -n "$cmd" ] && eval "${cmd}" 1>/dev/null 2>&1; then + if [ -n "$cmd" ] && eval "${cmd}" >/dev/null 2>&1; then print_json_bool "result" '1' else print_json_bool "result" '0' |