#!/bin/sh
# Released under GNU GPL v2 or later
# Es un script muy sencillo para Musix 0.39, dado que quitamos k3b

# si existe k3b, salimos...

K3B="yes"

[ -f /usr/bin/k3b ] || K3B="no"

if [ "$K3b" = "yes" ]
then
# cargamos k3b
k3b
exit
fi


if [ "$K3B" = "no" ]
then

pos="-center"
echo -n "K3b Installation

Description: A sophisticated KDE CD burning application
 K3b is a GUI frontend to the CD recording programs cdrdao and cdrecord.
 Its aim is to provide a very user friendly interface to all the tasks
 that come with cd recording.
 .
 It can be used to copy CDs and burn:
  - audio CDs (from wav, mp3 or ogg vorbis files)
  - data CDs and DVDs
  - mixed-mode CDs (CD-Extra support)
  - VCDs (1.1, 2.0 and SVCD)
  - ISO files (Joliet/Rockridge and El Torito support)
  - eMovix CDs
 .
 For more information, visit the homepage at http://www.k3b.org

Note: you need an Internet connection!

 " | gmessage -title 'Choose' -geometry 640x500 -file - $pos -buttons "Install-K3B:0,Run-Gcombust:1,Synaptic:4,Abort:8"

NL="$?"

#fi

# Salimos, pero antes creamos flag para scripts de xinitrc-*
if [ "$NL" = "8" ] 
then 
exit 2 
fi

# Synaptic
if [ "$NL" = "4" ] 
then 
synaptic
exit
fi

# instalar
if [ "$NL" = "1" ] 
then 
gcombust
exit
fi


# instalar
if [ "$NL" = "0" ] 
then 
mrxvt -e apt-get install k3b k3b-i18n

exit
fi



if [ "$EN" = "no" ] 
then
echo "
Actualizando base de datos sobre paquetes de software disponibles..."
fi

if [ "$EN" = "yes" ] 
then
echo "
Updating the available software package's database"
fi


apt-get update

if [ "$?" = "100" ]
then
	echo "

	It was impossible to update the software package's database, please: check the Internet connection!";read; exit
fi




fi