diff options
Diffstat (limited to 'sysutils/bsdstats/files/300.statistics')
-rw-r--r-- | sysutils/bsdstats/files/300.statistics | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/sysutils/bsdstats/files/300.statistics b/sysutils/bsdstats/files/300.statistics index 3f3ee1b31295..deab7ba07f25 100644 --- a/sysutils/bsdstats/files/300.statistics +++ b/sysutils/bsdstats/files/300.statistics @@ -1,6 +1,6 @@ #!/bin/sh - # -# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.28 2006-10-01 06:15:31 scrappy Exp $ +# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.29 2006-10-02 12:03:49 scrappy Exp $ # # If there is a global system configuration file, suck it in. @@ -75,7 +75,6 @@ get_id_token () { chown root:wheel $idf && \ chmod 600 $idf - sleep `random` do_fetch getid.php?key=$IDTOKEN | { local IFS IFS='= @@ -98,24 +97,10 @@ get_id_token () { } > $idf && \ mv $idf $id_token_file - if [ ! -s $id_token_file ] ; - then - echo "Nothing returned from $checkin_server" - exit 1 - fi - - echo "To protect against abuse, the initial challenge/response phase" - echo "contains a 15 minute pause. Please be patient while this time" - echo "limit elapses" - sleep 900 - else - FILETIME=$( stat -f %m $id_token_file ) - NOW=$( date +%s ) - if [ $(( $NOW - 900 )) -le $FILETIME ]; then - SLEEPTIME=$(( 900 - ($NOW - $FILETIME) )) - echo "Token key is younger than 15 minutes!" - echo "Sleeping $SLEEPTIME seconds, please wait." - sleep $SLEEPTIME + if [ ! -s $id_token_file ] ; + then + echo "Nothing returned from $checkin_server" + exit 1 fi fi . $id_token_file |