From: Andrea R. <ar...@sy...> - 2005-08-01 09:10:03
|
Author: arighi Date: 2005-08-01 07:26:12 -0500 (Mon, 01 Aug 2005) New Revision: 3213 Modified: trunk/initrd_source/skel/etc/init.d/functions Log: always send status=0 during client initialization Modified: trunk/initrd_source/skel/etc/init.d/functions =================================================================== --- trunk/initrd_source/skel/etc/init.d/functions 2005-08-01 10:17:45 UTC (rev 3212) +++ trunk/initrd_source/skel/etc/init.d/functions 2005-08-01 12:26:12 UTC (rev 3213) @@ -1319,7 +1319,7 @@ mem=`cat /proc/meminfo | sed -ne "s/MemTotal: *//p" | sed "s/ kB//"` tmpfs=`df | grep tmpfs | sed "s/.* \([0-9]*%\) .*/\1/"` time=`expr $(cat /proc/uptime | sed "s/\..*//") / 60` - msg=`echo mac=$mac:ip=$IPADDR:host=$HOSTNAME:cpu=$cpu:mem=$mem:tmpfs=$tmpfs:time=$time:status=$1` + msg=`echo mac=$mac:ip=$IPADDR:host=$HOSTNAME:cpu=$cpu:mem=$mem:tmpfs=$tmpfs:time=$time:status=0` echo $msg | nc $MONITOR_SERVER $MONITOR_PORT fi } |