Changeset 4802
- Timestamp:
- May 16, 2017, 2:58:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zero-lliurex-s4a/trunk/fuentes/zero-lliurex-s4a.zlaunchers/zero-lliurex-s4a.zmd
r4789 r4802 1 1 #!/bin/bash 2 2 set -e 3 3 export TEXTDOMAIN="zero-lliurex-s4a" 4 4 MSG_NO_INTERNET=$(gettext "No Internet Connection has been detected. Please, check it") … … 16 16 echo "Internet is ok...........continue" 17 17 else 18 echo "jjjjjjj" 18 19 ######NO TENEMOS CONEXION A INTERNET 19 20 zenity --error --text="$MSG_NO_INTERNET" > /dev/null 2>&1 … … 22 23 exit 1 23 24 24 25 fi 25 26 ###### COMPROBAMOS SI ES PARA 64 BITS O 32 Y ELEGIMOS INSTALACION EN CADA CASO 26 27 … … 39 40 40 41 dpkg --add-architecture i386 42 zero-repos-update || true 41 43 42 44 … … 51 53 echo "libpulse0:i386 install" >> /tmp/list64.txt 52 54 echo "libasound2:i386 install" >> /tmp/list64.txt 53 echo "s4a " >> /tmp/list64.txt55 echo "s4a install" >> /tmp/list64.txt 54 56 55 zero-installer -l /tmp/list64.txt 57 zero-installer -l /tmp/list64.txt || true 56 58 57 if [ $? -ne 0 ] 58 then 59 60 zenity --info --title="Zero-installer" --text="For some reason some packages couldn't be installed. View details in /tmp/zero-list64.txt.log " > /dev/null 2>&1 & 61 echo 62 echo "Some or any packages are not installed" 63 echo 59 ######COMPROBAMOS QUE LA LISTA SE INSTALO BIEN ABORTANDO EL PROCESO SI FALLO ALGUN PAQUETE 60 61 62 # Comprobacion que faltaba algun paquete en el repositorio 63 if [ $(rgrep "in your repositories" /tmp/zero-installer.log) ]; then 64 echo "We can't install some packages from your repository view details in /tmp/zero-install.log" 65 zenity --info --title="Zero-installer" --text="We can't install some packages from your repository view details in /tmp/zero-install.log " > /dev/null 2>&1 & 66 zero-center set-non-configured zero-lliurex-s4a 67 zero-center remove-pulsating-color zero-lliurex-s4a 64 68 exit 1 65 69 fi 66 67 ######COMPROBAMOS QUE LA LISTA SE INSTALO BIEN ABORTANDO EL PROCESO SI FALLO ALGUN PAQUETE68 fgrep "is not in repository" /tmp/zero-list64.txt.log69 70 # Comprobacion que faltaba algun paquete en el repositorio71 if [ "$?" == "0" ]; then72 zenity --info --title="Zero-installer" --text="We can't install some packages from your repository view details in /tmp/zero-list64.txt.log " > /dev/null 2>&1 &73 exit 174 fi75 76 #Comprobacion de que los paquetes estan instalados sin problemas.77 78 for PACKET in $( cat /tmp/list64.txt | awk '{print$1}' )79 do80 PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $PACKET | grep "install ok installed")81 if [ "" == "$PKG_OK" ]; then82 zenity --info --title="Zero-installer" --text="We can't install some packages from your repository view details in /tmp/zero-list64.txt.log " > /dev/null 2>&1 &83 echo84 echo "Some or any packages are not installed"85 echo86 zero-center set-non-configured zero-lliurex-s4a87 zero-center remove-pulsating-color zero-lliurex-s4a88 exit 189 fi90 done91 70 92 71 … … 94 73 95 74 96 75 echo "Correct you have installed all you need for S4A, congratulations!!" 97 76 zero-center remove-pulsating-color zero-lliurex-s4a 98 77 zero-center set-configured zero-lliurex-s4a
Note: See TracChangeset
for help on using the changeset viewer.