#!/bin/bash export TEXTDOMAIN="zero-lliurex-adobereader" MSG_ADVERTISEMENT=$(gettext "You are going to install Adobe Reader.") MSG_DONE=$(gettext "Done") MSG_TITLE=$(gettext "Advertisement") release="precise" zero-center add-pulsating-color zero-lliurex-adobereader if zenity --question --title="$MSG_TITLE" --width=300 --height=100 --text="$MSG_ADVERTISEMENT"; then apt-add-repository "deb http://archive.canonical.com/ "$release" partner" :>/tmp/lliurex-adobereader-packet echo "acroread install" >> /tmp/lliurex-adobereader-packet apt-get update synaptic --hide-main-window --non-interactive --set-selections-file /tmp/lliurex-adobereader-packet zenity --info --text="$MSG_DONE" zero-center remove-pulsating-color zero-lliurex-adobereader zero-center set-configured zero-lliurex-adobereader fi exit 0