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

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

Adding more dependences

File size: 2.8 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 "libpulse-dev:i386 install" >> /tmp/list64.txt
56echo "libx11-6:i386 install" >> /tmp/list64.txt
57
58echo "s4a install" >> /tmp/list64.txt
59
60zero-installer -l /tmp/list64.txt || true
61
62######COMPROBAMOS QUE LA LISTA SE INSTALO BIEN ABORTANDO EL PROCESO SI FALLO ALGUN PAQUETE
63
64
65# Comprobacion que faltaba algun paquete en el repositorio
66if  [ $(rgrep "in your repositories" /tmp/zero-installer.log) ]; then
67        echo "We can't install some packages from your repository view details in /tmp/zero-install.log" 
68        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 &
69        zero-center set-non-configured zero-lliurex-s4a
70        zero-center remove-pulsating-color zero-lliurex-s4a
71        exit 1
72fi
73
74# Comprobacion dependencias en las librerias solventadas
75ldd /usr/lib/s4a/Plugins/* | grep "not found" >  /tmp/.s4a-installer.log
76if  [ $(rgrep "found" /tmp/.s4a-installer.log) ]; then
77        echo "You have dependences unsolved please review /tmp/.s4a-installer.log" 
78        zenity --info --title="Zero-installer" --text="You have dependences unsolved please review /tmp/.s4a-installer.log " > /dev/null 2>&1 &
79        zero-center set-non-configured zero-lliurex-s4a
80        zero-center remove-pulsating-color zero-lliurex-s4a
81        exit 1
82fi
83               
84                       
85
86       
87
88echo "Correct you have installed all you need for S4A, congratulations!!"
89zero-center remove-pulsating-color zero-lliurex-s4a
90zero-center set-configured zero-lliurex-s4a
91
92
93exit 0
Note: See TracBrowser for help on using the repository browser.