Browse Source

add license

Signed-off-by: Roger D rogerdammit@gmail.com
lilik-openwrt-22.03
Roger 11 years ago
parent
commit
d1d33eedaf
2 changed files with 10 additions and 4 deletions
  1. +1
    -0
      utils/watchcat/Makefile
  2. +9
    -4
      utils/watchcat/files/watchcat.sh

+ 1
- 0
utils/watchcat/Makefile View File

@ -12,6 +12,7 @@ PKG_VERSION:=1
PKG_RELEASE:=5
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk


+ 9
- 4
utils/watchcat/files/watchcat.sh View File

@ -1,4 +1,9 @@
#!/bin/sh
#!/bin/sh
#
# Copyright (C) 2010 segal.di.ubi.pt
#
# This is free software, licensed under the GNU General Public License v2.
#
mode="$1"
@ -46,12 +51,12 @@ watchcat_ping() {
for host in "$pinghosts"
do
if ping -c 1 "$host" &> /dev/null
then
if ping -c 1 "$host" &> /dev/null
then
time_lastcheck_withinternet="$time_now"
else
time_diff="$((time_now-time_lastcheck_withinternet))"
logger -p daemon.info -t "watchcat[$$]" "no internet connectivity for $time_diff seconds. Reseting when reaching $period"
logger -p daemon.info -t "watchcat[$$]" "no internet connectivity for $time_diff seconds. Reseting when reaching $period"
fi
done


Loading…
Cancel
Save