From 944d4676548e78b446619ce9af60bb0d0387127d Mon Sep 17 00:00:00 2001
From: hypercubus <hypercubus>
Date: Sun, 29 Aug 2004 17:59:10 +0000
Subject: [PATCH] changed deprecated 'tail -1' to 'tail -n 1'; the Java Service
 Wrapper team will probably change it soon, but we need this for 0.4

---
 installer/resources/i2prouter | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter
index ec86420d0f..482326303d 100644
--- a/installer/resources/i2prouter
+++ b/installer/resources/i2prouter
@@ -126,7 +126,7 @@ getpid() {
             if [ "X$pid" != "X" ]
             then
                 # Verify that a process with this pid is still running.
-                pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
+                pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -n 1`
                 if [ "X$pid" = "X" ]
                 then
                     # This is a stale pid file.
@@ -142,7 +142,7 @@ getpid() {
 }
 
 testpid() {
-    pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
+    pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -n 1`
     if [ "X$pid" = "X" ]
     then
         # Process is gone so remove the pid file.
-- 
GitLab