add license 201/head
authorRoger <rogerdammit@gmail.com>
Thu, 14 Aug 2014 14:30:25 +0000 (09:30 -0500)
committerRoger <rogerdammit@gmail.com>
Thu, 14 Aug 2014 14:30:25 +0000 (09:30 -0500)
Signed-off-by: Roger D rogerdammit@gmail.com
utils/watchcat/Makefile
utils/watchcat/files/watchcat.sh

index 03d4ed983c2ed1fc015b19c965864ece1ac0b2b9..7459794423673f7d056e70546380b53779c22090 100644 (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
 
index ee9b6bdfa7b40c71207b1d3ef63f15920c4724b1..304ef27c17874a464a00387f1b8c734dc357b41e 100644 (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