Browse Source

Merge pull request #8281 from dibdot/travelmate

travelmate: bugfix 1.3.7
lilik-openwrt-22.03
Dirk Brenken 6 years ago
committed by GitHub
parent
commit
7f7a4a60e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      net/travelmate/Makefile
  2. +2
    -2
      net/travelmate/files/travelmate.init
  3. +2
    -2
      net/travelmate/files/travelmate.sh

+ 1
- 1
net/travelmate/Makefile View File

@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=travelmate
PKG_VERSION:=1.3.6
PKG_VERSION:=1.3.7
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>


+ 2
- 2
net/travelmate/files/travelmate.init View File

@ -31,14 +31,14 @@ start_service()
reload_service()
{
local ppid pid
local ppid pid timeout="$(uci_get travelmate global trm_timeout)"
if [ -s "${trm_pidfile}" ]
then
ppid="$(cat "${trm_pidfile}" 2>/dev/null)"
if [ -n "${ppid}" ]
then
pid="$(pgrep sleep -P ${ppid} 2>/dev/null)"
pid="$(pgrep -xnf "sleep ${timeout:-60} 0" -P ${ppid} 2>/dev/null)"
if [ -n "${pid}" ]
then
kill -INT ${pid} 2>/dev/null


+ 2
- 2
net/travelmate/files/travelmate.sh View File

@ -10,7 +10,7 @@
#
LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
trm_ver="1.3.6"
trm_ver="1.3.7"
trm_sysver="unknown"
trm_enabled=0
trm_debug=0
@ -474,7 +474,7 @@ do
f_check "initial"
if [ "${trm_ifstatus}" = "true" ]
then
sleep ${trm_timeout}
sleep ${trm_timeout} 0
fi
if [ $? -eq 0 ] || [ "${trm_ifstatus}" = "false" ]
then


Loading…
Cancel
Save