source: zero-lliurex-s4a/trunk/fuentes/zero-lliurex-s4a.zlaunchers/zero-lliurex-s4a.zmd @ 4802

Last change on this file since 4802 was 4802, checked in by daduve, 2 years ago

Updating script

File size: 2.2 KB
Line 
1#!/bin/bash
2set -e
3export TEXTDOMAIN="zero-lliurex-s4a"
4MSG_NO_INTERNET=$(gettext "No Internet Connection has been detected. Please, check it")
5
6
7
8
9zero-center add-pulsating-color zero-lliurex-s4a
10
11
12#Comprobar conexion a internet e instalar
13rc=0
14zero-testnet || rc=1
15if [ $rc -eq 0 ]; then
16        echo "Internet is ok...........continue"
17else
18        echo "jjjjjjj"
19        ######NO TENEMOS CONEXION A INTERNET
20        zenity --error --text="$MSG_NO_INTERNET" > /dev/null 2>&1
21        zero-center set-non-configured zero-lliurex-s4a
22        zero-center remove-pulsating-color zero-lliurex-s4a
23        exit 1
24
25fi
26###### COMPROBAMOS SI ES PARA 64 BITS O 32 Y ELEGIMOS INSTALACION EN CADA CASO
27
28uname -m > /tmp/architectur.txt
29if [ $(grep "x86_64" /tmp/architectur.txt) ] ; then
30        ARCH="64"
31        echo "64 Bits distro, upgrading your system............"
32else
33        ARCH="32"
34fi
35echo "Version de la maquina $ARCH bits"
36
37if [ $ARCH = "64" ] ; then
38       
39        ########PREPARACION DEL SISTEMA PARA INSTALACION EN DISTRO DE 64 BITS
40       
41        dpkg --add-architecture i386
42        zero-repos-update || true
43
44       
45fi
46
47
48echo "libv4l-0:i386 install" > /tmp/list64.txt
49echo  "libsm6:i386 install"  >> /tmp/list64.txt
50echo "libice6:i386 install"  >> /tmp/list64.txt
51echo "libpangocairo-1.0.0:i386 install" >> /tmp/list64.txt
52echo "libcairo2:i386 install" >> /tmp/list64.txt
53echo "libpulse0:i386 install" >> /tmp/list64.txt
54echo "libasound2:i386 install" >> /tmp/list64.txt
55echo "s4a install" >> /tmp/list64.txt
56
57zero-installer -l /tmp/list64.txt || true
58
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
63if  [ $(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
68        exit 1
69fi
70               
71                       
72
73       
74
75echo "Correct you have installed all you need for S4A, congratulations!!"
76zero-center remove-pulsating-color zero-lliurex-s4a
77zero-center set-configured zero-lliurex-s4a
78
79
80exit 0
Note: See TracBrowser for help on using the repository browser.