source: zero-lliurex-installers/trunk/fuentes/zero-lliurex-midicss.zmds/zero-lliurex-midicss.zmd @ 3617

Last change on this file since 3617 was 3617, checked in by jrpelegrina, 3 years ago

WIP in rename zero-lliurex-kiosko, libreoffice-reset, midicss

File size: 1.2 KB
Line 
1#!/bin/bash
2
3export TEXTDOMAIN="zero-lliurex-midicss"
4MSG_NO_INTERNET=$(gettext "No Internet Connection has been detected. Please, check it")
5MSG_MIDITOTEM=$(gettext "Installing MIDI codecs for playback with TOTEM")
6MSG_MIDIVLC=$(gettext "Installing MIDI codecs for playback with VLC amb others")
7MSG_SELECT=$(gettext "Select the codecs to install")
8
9
10installcsstotem()
11{
12
13        zero-repos-update
14        zero-reinstall fluid-soundfont-gm
15        zero-center set-configured  zero-lliurex-midicss
16}
17
18installcssvlc()
19{
20
21        zero-repos-update
22        zero-reinstall vlc-plugin-fluidsynth
23        zero-center set-configured zero-lliurex-midicss
24
25}
26
27# Main menu
28zero-center add-pulsating-color zero-lliurex-midicss
29
30# Comprobar conexiónn a internet e instalar
31rc=0
32zero-testnet|| rc=1
33if [ $rc -eq 0 ]
34        then
35                       
36                resp=`zenity --list --radiolist --hide-header --width="500" --height="200" --title="$MSG_SELECT" \
37                        --column="Radio" --column="Number" --column="Action" \
38                        TRUE 1 "$MSG_MIDITOTEM"  \
39                        FALSE 2 "$MSG_MIDIVLC"`
40                       
41
42                case $resp in
43                        1) installcsstotem;;
44                        2) installcssvlc;;
45               
46                esac
47                zero-center remove-pulsating-color zero-lliurex-midicss
48                exit 0
49        else
50                zenity --error --text="$MSG_NO_INTERNET"
51                zero-center remove-pulsating-color zero-lliurex-midicss
52                exit 1
53fi
Note: See TracBrowser for help on using the repository browser.