Changeset 3397


Ignore:
Timestamp:
Jan 23, 2017, 4:36:08 PM (2 years ago)
Author:
daduve
Message:

Updating to show if you have mirror or not

Location:
lliurex-conky/trunk/fuentes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lliurex-conky/trunk/fuentes/debian/changelog

    r3300 r3397  
     1lliurex-conky (0.70) xenial; urgency=high
     2
     3  * Now if you don't have mirror, you can view it
     4
     5 -- Daniel Duran Vecino <daduve@gmail.com>  Mon, 23 Jan 2017 16:34:55 +0100
     6
    17lliurex-conky (0.69) xenial; urgency=high
    28
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_admins

    r3131 r3397  
    135135template7 ${if_up \1}${template0 \2}\nIP  ${alignr 9} ${addrs \1}$endif
    136136template8  MIRROR \1:${exec cat /tmp/mirror_version.txt | grep 'VERSION \1' | cut -d ":" -f2 | xargs}
    137 template9  MIRROR DUAL:${exec cat /tmp/mirror_version.txt | grep 'VERSION 32' | cut -d ":" -f2 | xargs} default_color white
     137template9  MIRROR DUAL:${exec cat /tmp/mirror_version.txt | grep 'VERSION 32' | cut -d ":" -f2 | xargs}
    138138template0 ${font AvantGardeLTMedium:bold:size=10}${color dodgerblue3}\1 ${hr 2}${color white}${font}${voffset 1}
    139139TEXT
     
    147147ARQUITECTURA: ${if_match "${exec grep "x86_64" /tmp/architecture.txt -c}" != "0"}64 Bits${else}32 Bits${endif}
    148148VERSIÓN:${exec lliurex-version | awk -F ',' '{print $3}'}
     149${if_existing /tmp/mirror_version.txt}${if_match ${exec grep "VERSION 32" /tmp/mirror_version.txt -c}!=0}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template9}${else}${template8 32}${endif}${else}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template8 64}${endif}${endif}${else}NO MIRROR DONE${endif}
    149150${template0 SISTEMA}
    150151Kernel $alignr $kernel
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_gui

    r3299 r3397  
    112112
    113113        rm $FICHERO
    114         touch $FICHERO
     114       
    115115
    116116        ARQ=$(find /net/mirror/llx16/pool/main/l/lliurex-meta -name '*386.deb' | head -1 )
     
    118118
    119119        if [ -n "$ARQ" ]; then
    120                        
     120       
     121                        touch $FICHERO
    121122                        NUMERO_32=$(echo $VERSION | cut -d_ -f2 )
    122123                        echo 'VERSION 32 BITS:' $NUMERO_32 >> $FICHERO
     
    129130        if [ -n "$ARQ" ]; then
    130131                       
     132                        if [ ! -f $FICHERO ]; then
     133                                touch $FICHERO
     134                        fi
    131135                        NUMERO_64=$(echo $VERSION | cut -d_ -f2 )
    132136                        echo 'VERSION 64 BITS:' $NUMERO_64 >> $FICHERO
     
    408412        if [[ $SELECTION == *MIRROR_VERSION* ]] ; then
    409413                if  ( rgrep 32 /tmp/mirror_version.txt ) || ( rgrep 64 /tmp/mirror_version.txt) ; then
    410                         echo '${if_existing /tmp/mirror_version.txt}${if_match ${exec grep "VERSION 32" /tmp/mirror_version.txt -c}!=0}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template9}${else}${template8 32}${endif}${else}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template8 64}${endif}${endif}${endif}' >> $CONKYRC_USED
     414                        echo '${if_existing /tmp/mirror_version.txt}${if_match ${exec grep "VERSION 32" /tmp/mirror_version.txt -c}!=0}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template9}${else}${template8 32}${endif}${else}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template8 64}${endif}${endif}${else}NO MIRROR DONE${endif}' >> $CONKYRC_USED
    411415                fi
    412416        fi
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/lliurex-conky

    r3299 r3397  
    8484
    8585        rm $FICHERO
    86         touch $FICHERO
     86       
    8787
    8888        ARQ=$(find /net/mirror/llx16/pool/main/l/lliurex-meta -name '*386.deb' | head -1 )
     
    9090
    9191        if [ -n "$ARQ" ]; then
    92                        
     92       
     93                        touch $FICHERO
    9394                        NUMERO_32=$(echo $VERSION | cut -d_ -f2 )
    9495                        echo 'VERSION 32 BITS:' $NUMERO_32 >> $FICHERO
     
    101102        if [ -n "$ARQ" ]; then
    102103                       
     104                        if [ ! -f $FICHERO ]; then
     105                                touch $FICHERO
     106                        fi
    103107                        NUMERO_64=$(echo $VERSION | cut -d_ -f2 )
    104108                        echo 'VERSION 64 BITS:' $NUMERO_64 >> $FICHERO
Note: See TracChangeset for help on using the changeset viewer.