From c20703d5bec2bcefdff0068f9dc352f73676c510 Mon Sep 17 00:00:00 2001 From: gSpot Date: Thu, 23 Jan 2025 01:51:17 +0300 Subject: [PATCH] Minor fixes --- README.md | 30 +++++++++---------- internet-detector-mod-email/Makefile | 2 +- internet-detector-mod-modem-restart/Makefile | 2 +- internet-detector/Makefile | 2 +- .../files/usr/bin/internet-detector | 4 +-- luci-app-internet-detector/Makefile | 2 +- .../usr/libexec/rpcd/luci.internet-detector | 2 +- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index bc94ca6..5adf1b0 100644 --- a/README.md +++ b/README.md @@ -15,22 +15,22 @@ Internet-detector is an application for checking the availability of the Interne ## Installation notes (OpenWrt >= 21.02) opkg update - wget --no-check-certificate -O /tmp/internet-detector_1.3.1-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector_1.3.1-r1_all.ipk - opkg install /tmp/internet-detector_1.3.1-r1_all.ipk - rm /tmp/internet-detector_1.3.1-r1_all.ipk + wget --no-check-certificate -O /tmp/internet-detector_1.3.2-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector_1.3.2-r1_all.ipk + opkg install /tmp/internet-detector_1.3.2-r1_all.ipk + rm /tmp/internet-detector_1.3.2-r1_all.ipk /etc/init.d/internet-detector start /etc/init.d/internet-detector enable - wget --no-check-certificate -O /tmp/luci-app-internet-detector_1.3.1-1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-internet-detector_1.3.1-1_all.ipk - opkg install /tmp/luci-app-internet-detector_1.3.1-1_all.ipk - rm /tmp/luci-app-internet-detector_1.3.1-1_all.ipk + wget --no-check-certificate -O /tmp/luci-app-internet-detector_1.3.2-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-internet-detector_1.3.2-r1_all.ipk + opkg install /tmp/luci-app-internet-detector_1.3.2-r1_all.ipk + rm /tmp/luci-app-internet-detector_1.3.2-r1_all.ipk /etc/init.d/rpcd restart i18n-ru: - wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_1.3.1-1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-i18n-internet-detector-ru_1.3.1-1_all.ipk - opkg install /tmp/luci-i18n-internet-detector-ru_1.3.1-1_all.ipk - rm /tmp/luci-i18n-internet-detector-ru_1.3.1-1_all.ipk + wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_1.3.2-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-i18n-internet-detector-ru_1.3.2-r1_all.ipk + opkg install /tmp/luci-i18n-internet-detector-ru_1.3.2-r1_all.ipk + rm /tmp/luci-i18n-internet-detector-ru_1.3.2-r1_all.ipk ## Screenshots: @@ -42,9 +42,9 @@ i18n-ru: **Dependences:** modemmanager. - wget --no-check-certificate -O /tmp/internet-detector-mod-modem-restart_1.3.1-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-modem-restart_1.3.1-r1_all.ipk - opkg install /tmp/internet-detector-mod-modem-restart_1.3.1-r1_all.ipk - rm /tmp/internet-detector-mod-modem-restart_1.3.1-r1_all.ipk + wget --no-check-certificate -O /tmp/internet-detector-mod-modem-restart_1.3.2-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-modem-restart_1.3.2-r1_all.ipk + opkg install /tmp/internet-detector-mod-modem-restart_1.3.2-r1_all.ipk + rm /tmp/internet-detector-mod-modem-restart_1.3.2-r1_all.ipk /etc/init.d/internet-detector restart ![](https://github.com/gSpotx2f/luci-app-internet-detector/blob/master/screenshots/04.jpg) @@ -53,9 +53,9 @@ i18n-ru: **Dependences:** mailsend. - wget --no-check-certificate -O /tmp/internet-detector-mod-email_1.3.1-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-email_1.3.1-r1_all.ipk - opkg install /tmp/internet-detector-mod-email_1.3.1-r1_all.ipk - rm /tmp/internet-detector-mod-email_1.3.1-r1_all.ipk + wget --no-check-certificate -O /tmp/internet-detector-mod-email_1.3.2-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-email_1.3.2-r1_all.ipk + opkg install /tmp/internet-detector-mod-email_1.3.2-r1_all.ipk + rm /tmp/internet-detector-mod-email_1.3.2-r1_all.ipk /etc/init.d/internet-detector restart ![](https://github.com/gSpotx2f/luci-app-internet-detector/blob/master/screenshots/05.jpg) diff --git a/internet-detector-mod-email/Makefile b/internet-detector-mod-email/Makefile index f0d683a..34700e7 100644 --- a/internet-detector-mod-email/Makefile +++ b/internet-detector-mod-email/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=internet-detector-mod-email -PKG_VERSION:=1.3.1 +PKG_VERSION:=1.3.2 PKG_RELEASE:=1 PKG_MAINTAINER:=gSpot diff --git a/internet-detector-mod-modem-restart/Makefile b/internet-detector-mod-modem-restart/Makefile index f054a15..21b6c0c 100644 --- a/internet-detector-mod-modem-restart/Makefile +++ b/internet-detector-mod-modem-restart/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=internet-detector-mod-modem-restart -PKG_VERSION:=1.3.1 +PKG_VERSION:=1.3.2 PKG_RELEASE:=1 PKG_MAINTAINER:=gSpot diff --git a/internet-detector/Makefile b/internet-detector/Makefile index faf5897..93d1ee6 100644 --- a/internet-detector/Makefile +++ b/internet-detector/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=internet-detector -PKG_VERSION:=1.3.1 +PKG_VERSION:=1.3.2 PKG_RELEASE:=1 PKG_MAINTAINER:=gSpot diff --git a/internet-detector/files/usr/bin/internet-detector b/internet-detector/files/usr/bin/internet-detector index 7c510b5..c495970 100755 --- a/internet-detector/files/usr/bin/internet-detector +++ b/internet-detector/files/usr/bin/internet-detector @@ -15,13 +15,13 @@ local InternetDetector = require("internet-detector.main") local function help() return string.format( - "Usage: %s service | nodaemon | debug | stop | status | inet-status | uipoll | --help", + "Usage: %s daemon | nodaemon | debug | stop | status | inet-status | uipoll | --help", arg[0] ) end local helpArgs = { ["-h"] = true, ["--help"] = true, help = true } -if arg[1] == "service" then +if arg[1] == "daemon" then if arg[2] then if InternetDetector:setServiceConfig(arg[2]) then InternetDetector:daemon() diff --git a/luci-app-internet-detector/Makefile b/luci-app-internet-detector/Makefile index 9821bb0..4c01cac 100644 --- a/luci-app-internet-detector/Makefile +++ b/luci-app-internet-detector/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-internet-detector -PKG_VERSION:=1.3.1 +PKG_VERSION:=1.3.2 PKG_RELEASE:=1 LUCI_TITLE:=LuCI support for internet-detector LUCI_DEPENDS:=+internet-detector diff --git a/luci-app-internet-detector/root/usr/libexec/rpcd/luci.internet-detector b/luci-app-internet-detector/root/usr/libexec/rpcd/luci.internet-detector index 25a96a0..2274633 100755 --- a/luci-app-internet-detector/root/usr/libexec/rpcd/luci.internet-detector +++ b/luci-app-internet-detector/root/usr/libexec/rpcd/luci.internet-detector @@ -49,7 +49,7 @@ local function startUiInstances() "instance", function(s) if s.enabled == "1" then - os.execute(string.format("%s service %s", appExec, s[".name"])) + os.execute(string.format("%s daemon %s", appExec, s[".name"])) end end )