Changeset 5793


Ignore:
Timestamp:
Sep 12, 2017, 10:07:34 AM (2 years ago)
Author:
Juanma
Message:

Add zomando for promethean drivers

Location:
zero-lliurex-installers/trunk/fuentes
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-installers/trunk/fuentes/zero-lliurex-promethean.zmds/zero-lliurex-promethean.zmd

    r5790 r5793  
    11#!/bin/bash
     2#set -x
    23
    34#VARIABLES GLOBALES
     
    89MSG_NO_INTERNET=$(gettext "No Internet Connection has been detected. Please, check it")
    910PROMETHEAN_REPO_FILE="/etc/apt/sources.list.d/promethean.list"
     11MSG_REINSTALL=$(gettext "is already installed in your system, now we are goig to remove it and install it again.")
     12MSG_INSTALL=$(gettext "This will install the drivers for the Promethean board. Continue?")
     13MSG_INSTALL_KO=$(gettext "has a problem to be installed in your system, please retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums")
     14MSG_INSTALL_OK=$(gettext "has been installed in your system, and you can see the resume in")
    1015
    11 if ! (zenity --question --text "This will install the drivers for the Promethean board. Continue?")
     16export TEXTDOMAIN="lliurex-zero-installer-promethean"
     17
     18if ! (zenity --question --text="$MSG_INSTALL")
    1219then
    1320        exit 1
     
    2431                        echo "Package $1 already installed, we have to uninstall it" >> $promethean_LOG
    2532                        echo "Package $1 already installed, we have to uninstall it"
    26                         su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$1 is already installed in your system, now we are goig to remove it and install it again.'" $USER
     33                        su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$1 $MSG_REINSTALL'" $USER
    2734                        zero-installer remove $1
    2835                        cat $ZERO_LOG >> $promethean_LOG
     
    7683                                TEST=$( dpkg-query -s $i 2> /dev/null| grep Status | cut -d " " -f 4 )
    7784                                if [ "$TEST" != 'installed' ]; then
    78                                         zenity --info --title="Zero-installer" --text="Your package $i has a problem to be installed in your system, please retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums" > /dev/null 2>&1 &
     85                                        zenity --info --title="Zero-installer" --text="$i $MSG_INSTALL_KO" > /dev/null 2>&1 &
    7986                                        zero-center remove-pulsating-color zero-lliurex-promethean
    8087                                        zero-center set-non-configured zero-lliurex-promethean
     
    8491                        apt-key del PrometheanLtd
    8592                        rm -f $PROMETHEAN_REPO_FILE
    86                         zenity --info --title="Zero-installer" --text="Your package $PACKAGE_NAME has been installed in your system, and you can see the resume in $promethean_LOG" &
     93                        zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_INSTALL_OK $promethean_LOG" &
    8794                        zero-center remove-pulsating-color zero-lliurex-promethean
    8895                        zero-center set-configured zero-lliurex-promethean
Note: See TracChangeset for help on using the changeset viewer.