Changeset 2732 in /cluster/svnroot


Ignore:
Timestamp:
Oct 20, 2010 1:18:05 PM (10 years ago)
Author:
fitz
Message:

#532: Refine usage client script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/fitz-devel/trees/bin/bccd-usage

    r2731 r2732  
    55
    66echo -n "date=$(date)" >> $STATSFILE
    7 echo -n "&cpu_model=$(grep 'model name' /proc/cpuinfo | head -1 | sed -e 's/model name\s*: //')" >> $STATSFILE
     7echo -n "&cpu=$(grep 'model name' /proc/cpuinfo | head -1 | sed -e 's/model name\s*: //;s/ * / /g')" >> $STATSFILE
    88echo -n "&cores=$(grep ^proc /proc/cpuinfo | wc -l)" >> $STATSFILE
    9 echo -n "&architecture=$(uname -m)" >> $STATSFILE
    10 echo -n "&networks=$(lspci | grep -i ether | wc -l)" >> $STATSFILE
     9echo -n "&arch=$(uname -m)" >> $STATSFILE
     10echo -n "&nics=$(lspci | grep -i ether | wc -l)" >> $STATSFILE
    1111echo -n "&ram=$(grep MemTotal /proc/meminfo | awk '{print $2}') kB" >> $STATSFILE
     12echo -n "&rev=$(cat /etc/bccd-revision)" >> $STATSFILE
     13echo -n "&build=$(cat /etc/bccd-build-date)" >> $STATSFILE
     14echo >> $STATSFILE
    1215
    13 #/bin/bccd-version | sed -e '/^$/d;s/: /=/'
    14 
    15 dialog --yesno "Would you like to send some usage statistics to bccd.net?
     16dialog --no-collapse --cr-wrap --yesno "Would you like to send some usage statistics to bccd.net?
    1617
    1718For your reference, here is the information we'll be sending:
    1819
    19 $(echo -ne '\t'; cat $STATSFILE | sed -e 's/&/\n\t/g')" 0 0
     20$(echo -ne '\t'; cat $STATSFILE | sed -e 's/&/\n\t/g;s/=/\t/g')
     21 " 18 70
    2022
    2123if [ $? == 0 ]; then
     
    2628        echo >> $POSTFILE
    2729        cat $STATSFILE >> $POSTFILE
    28         echo >> $POSTFILE
    29         echo >> $POSTFILE
     30        echo -e "\n" >> $POSTFILE
    3031
    3132        echo
Note: See TracChangeset for help on using the changeset viewer.