update 2025-05-28 00:28:56
This commit is contained in:
parent
082a5c6018
commit
d9841f5c39
|
@ -17,22 +17,22 @@ Internet-detector is an application for checking the availability of the Interne
|
|||
## Installation notes:
|
||||
|
||||
opkg update
|
||||
wget --no-check-certificate -O /tmp/internet-detector_1.4.5-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector_1.4.5-r1_all.ipk
|
||||
opkg install /tmp/internet-detector_1.4.5-r1_all.ipk
|
||||
rm /tmp/internet-detector_1.4.5-r1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/internet-detector_1.4.6-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector_1.4.6-r1_all.ipk
|
||||
opkg install /tmp/internet-detector_1.4.6-r1_all.ipk
|
||||
rm /tmp/internet-detector_1.4.6-r1_all.ipk
|
||||
service internet-detector start
|
||||
service internet-detector enable
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-app-internet-detector_1.4.5-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-internet-detector_1.4.5-r1_all.ipk
|
||||
opkg install /tmp/luci-app-internet-detector_1.4.5-r1_all.ipk
|
||||
rm /tmp/luci-app-internet-detector_1.4.5-r1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/luci-app-internet-detector_1.4.6-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-internet-detector_1.4.6-r1_all.ipk
|
||||
opkg install /tmp/luci-app-internet-detector_1.4.6-r1_all.ipk
|
||||
rm /tmp/luci-app-internet-detector_1.4.6-r1_all.ipk
|
||||
service rpcd restart
|
||||
|
||||
i18n-ru:
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_1.4.5-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-i18n-internet-detector-ru_1.4.5-r1_all.ipk
|
||||
opkg install /tmp/luci-i18n-internet-detector-ru_1.4.5-r1_all.ipk
|
||||
rm /tmp/luci-i18n-internet-detector-ru_1.4.5-r1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_1.4.6-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-i18n-internet-detector-ru_1.4.6-r1_all.ipk
|
||||
opkg install /tmp/luci-i18n-internet-detector-ru_1.4.6-r1_all.ipk
|
||||
rm /tmp/luci-i18n-internet-detector-ru_1.4.6-r1_all.ipk
|
||||
|
||||
## Screenshots:
|
||||
|
||||
|
@ -44,9 +44,9 @@ i18n-ru:
|
|||
|
||||
**Dependences:** modemmanager.
|
||||
|
||||
wget --no-check-certificate -O /tmp/internet-detector-mod-modem-restart_1.4.5-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-modem-restart_1.4.5-r1_all.ipk
|
||||
opkg install /tmp/internet-detector-mod-modem-restart_1.4.5-r1_all.ipk
|
||||
rm /tmp/internet-detector-mod-modem-restart_1.4.5-r1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/internet-detector-mod-modem-restart_1.4.6-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-modem-restart_1.4.6-r1_all.ipk
|
||||
opkg install /tmp/internet-detector-mod-modem-restart_1.4.6-r1_all.ipk
|
||||
rm /tmp/internet-detector-mod-modem-restart_1.4.6-r1_all.ipk
|
||||
service internet-detector restart
|
||||
|
||||

|
||||
|
@ -55,9 +55,9 @@ i18n-ru:
|
|||
|
||||
**Dependences:** mailsend.
|
||||
|
||||
wget --no-check-certificate -O /tmp/internet-detector-mod-email_1.4.5-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-email_1.4.5-r1_all.ipk
|
||||
opkg install /tmp/internet-detector-mod-email_1.4.5-r1_all.ipk
|
||||
rm /tmp/internet-detector-mod-email_1.4.5-r1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/internet-detector-mod-email_1.4.6-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-email_1.4.6-r1_all.ipk
|
||||
opkg install /tmp/internet-detector-mod-email_1.4.6-r1_all.ipk
|
||||
rm /tmp/internet-detector-mod-email_1.4.6-r1_all.ipk
|
||||
service internet-detector restart
|
||||
|
||||

|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=internet-detector-mod-email
|
||||
PKG_VERSION:=1.4.5
|
||||
PKG_VERSION:=1.4.6
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=internet-detector-mod-modem-restart
|
||||
PKG_VERSION:=1.4.5
|
||||
PKG_VERSION:=1.4.6
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=internet-detector
|
||||
PKG_VERSION:=1.4.5
|
||||
PKG_VERSION:=1.4.6
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
||||
|
||||
|
|
|
@ -356,7 +356,16 @@ function InternetDetector:mainLoop()
|
|||
_RUNNING = true
|
||||
while _RUNNING do
|
||||
if counter == 0 or counter >= interval then
|
||||
currentStatus = self:checkHosts()
|
||||
if self.debug then
|
||||
currentStatus = self:checkHosts()
|
||||
else
|
||||
local ret, status = pcall(self.checkHosts, self, currentStatus)
|
||||
if ret then
|
||||
currentStatus = status
|
||||
else
|
||||
self:writeLogMessage("err", "Unknown error while checking host!")
|
||||
end
|
||||
end
|
||||
if onStart or not stat.stat(self.statusFile) then
|
||||
self:writeValueToFile(self.statusFile, self:statusJson(
|
||||
currentStatus, self.serviceConfig.instance))
|
||||
|
@ -391,7 +400,14 @@ function InternetDetector:mainLoop()
|
|||
mTimeDiff = 1
|
||||
end
|
||||
mLastTime = mTimeNow
|
||||
e:run(currentStatus, lastStatus, mTimeDiff, mTimeNow, inetChecked)
|
||||
if self.debug then
|
||||
e:run(currentStatus, lastStatus, mTimeDiff, mTimeNow, inetChecked)
|
||||
else
|
||||
local ret = pcall(e.run, e, currentStatus, lastStatus, mTimeDiff, mTimeNow, inetChecked)
|
||||
if not ret then
|
||||
self:writeLogMessage("err", string.format("%s: Unknown error!", e.name))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local modStatusChanged = false
|
||||
|
|
|
@ -321,7 +321,7 @@ function Module:requestIP()
|
|||
end
|
||||
|
||||
local retCode, response = self:sendUDPMessage(self._DNSPacket, server, port)
|
||||
if retCode == 0 then
|
||||
if retCode == 0 and response then
|
||||
local retTable = self:decodeMessage(response)
|
||||
if #retTable > 0 then
|
||||
res = table.concat(retTable, ", ")
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-internet-detector
|
||||
PKG_VERSION:=1.4.5
|
||||
PKG_VERSION:=1.4.6
|
||||
PKG_RELEASE:=1
|
||||
LUCI_TITLE:=LuCI support for internet-detector
|
||||
LUCI_DEPENDS:=+internet-detector
|
||||
|
|
Loading…
Reference in New Issue