From 8b7224cfaf6961c48c018e6cfc500d577c8caaac Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 10 Apr 2012 15:55:57 +0200 Subject: Don't treat exit 10 from dynamic scripts differently from any other non-zero code. clientwr() should treat the dynamic lookup as a failure and will not be any happier to know that the exact error was that it didn't resolv. The script can do whatever logging is wanted. That said, this commit also makes the scripts exit with 10 in order to signal failure. --- tools/naptr-eduroam.sh | 2 +- tools/radsec-dynsrv.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/naptr-eduroam.sh b/tools/naptr-eduroam.sh index 43d3d9f..6497549 100755 --- a/tools/naptr-eduroam.sh +++ b/tools/naptr-eduroam.sh @@ -70,4 +70,4 @@ if [ -n "${SERVERS}" ]; then exit 0 fi -exit 0 +exit 10 # No server found. diff --git a/tools/radsec-dynsrv.sh b/tools/radsec-dynsrv.sh index 4d00f32..3150018 100755 --- a/tools/radsec-dynsrv.sh +++ b/tools/radsec-dynsrv.sh @@ -48,4 +48,4 @@ if test -n "${SERVERS}" ; then exit 0 fi -exit 0 +exit 10 # No server found. -- cgit v1.1