From 902c505e4ad26e5fcf261410710cc45530c8223f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 6 Jun 2003 10:22:20 +0000 Subject: Exit with error if we fail to stop pingd --- tools/pingctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/pingctl b/tools/pingctl index ba99c19..3055055 100755 --- a/tools/pingctl +++ b/tools/pingctl @@ -35,8 +35,8 @@ wait_for_deaddaemon () { cnt=`expr $cnt + 1` if [ $cnt -gt 30 ] then - echo -n " Failed.. " - break + echo " Failed.. " + exit 1; fi sleep 2 echo -n "." -- cgit v1.2.3