[PC-BSD Commits] r5986 - pcbsd/trunk/system-overlay/usr/local/etc/periodic/monthly

svn at pcbsd.org svn at pcbsd.org
Wed Jan 13 07:02:18 PST 2010


Author: kris
Date: 2010-01-13 07:02:17 -0800 (Wed, 13 Jan 2010)
New Revision: 5986

Modified:
   pcbsd/trunk/system-overlay/usr/local/etc/periodic/monthly/300.statistics
Log:

Updated 300.statistics to latest in ports



Modified: pcbsd/trunk/system-overlay/usr/local/etc/periodic/monthly/300.statistics
===================================================================
--- pcbsd/trunk/system-overlay/usr/local/etc/periodic/monthly/300.statistics	2010-01-13 10:04:00 UTC (rev 5985)
+++ pcbsd/trunk/system-overlay/usr/local/etc/periodic/monthly/300.statistics	2010-01-13 15:02:17 UTC (rev 5986)
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-# $FreeBSD: ports/sysutils/bsdstats/files/300.statistics,v 1.41 2008/08/19 10:25:06 bsam Exp $
+# $FreeBSD: ports/sysutils/bsdstats/files/300.statistics,v 1.42 2009/09/18 21:19:34 pav Exp $
 #
 
 # If there is a global system configuration file, suck it in.
@@ -21,13 +21,14 @@
 
 oldmask=$(umask)
 umask 066
+timeout=10
 
-version="5.4"
+version="5.5"
 checkin_server=${monthly_statistics_checkin_server:-"rpt.bsdstats.org"}
 bsdstats_log=${monthly_statistics_logfile:-"/var/log/bsdstats"}
 id_token_file='/var/db/bsdstats'
 
-PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
 export PATH
 
 unset HTTP_USER_AGENT
@@ -61,10 +62,10 @@
     url="http://$checkin_server/scripts/$1"
     case $(uname) in
 	FreeBSD )	
-		/usr/bin/fetch -q -o - "$url"
+		/usr/bin/fetch -T "$timeout" -q -o - "$url"
 		;;
 	* )
-		/usr/bin/ftp -V -o - "$url"
+		/usr/bin/ftp -q "$timeout" -V -o - "$url"
 		;;
     esac
 }
@@ -397,7 +398,7 @@
 case "$monthly_statistics_enable" in
     [Yy][Ee][Ss])
       check_dns
-      REL="`/usr/local/bin/pbreg get /PC-BSD/Version`"
+      REL=`/usr/bin/uname -r`
       ARCH=`/usr/bin/uname -m`
       OS="PC-BSD"
       get_id_token



More information about the Commits mailing list