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

Updating to show if you have mirror or not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.