#!/bin/sh # by Chris_(medico_2001) # for Klikit-Linux # GPL - June 2007 xterm -e sudo killall synaptic apt-get dpkg adept export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit-Linux Wizard" \ --backtitle " Install the libdvdcss2 " \ --radiolist "Due to 'possible' patent restrictions, this library can not be included in Klikit-Linux. Using this wizard, the package will be downloaded, installed and configured automatically\n This library is needed to decode encrypted (commercial) DVD's. it does NOT have any relation to copy protection \n libdvdcss2 has never been the subject of any legal proceedings anywhere in the world. There is really very little information about the current legal situation of it.\n Anyway the use and distribution of this library is controversial in a few contries, such as in the United States, because of the DMCA law \n IMPORTANT: Installing this package implies that you are aware of the patent restrictions involved.\n" 45 75 0 \ "Install" "Install the libdvdcss2 library" on \ "Info" "read info about this package" off \ "Remove" "Remove the libdvdcss2 library after installation" off \ "Exit" "Close this wizard" off 2> /tmp/checklist.tmp.$$ retval=$? if [ $retval = 1 ]; then exit 0 fi choice=`cat /tmp/checklist.tmp.$$` rm -f /tmp/checklist.tmp.$$ # ----------------------------------- if [ "$choice" = "Install" ]; then xterm -e sudo sh /usr/share/doc/libdvdread3/install-css.sh kdialog --title="klikit info" --msgbox "the libdvdcss2 library was successfully installed" fi # ----------------------------------- if [ "$choice" = "Remove" ]; then xterm -e sudo dpkg -P libdvdcss2 kdialog --title="klikit info" --msgbox "the libdvdcss2 library was successfully removed" fi # ----------------------------------- if [ "$choice" = "Info" ]; then firefox http://ubuntucat.wordpress.com/2007/05/28/the-legality-or-illegality-of-w32codecs-and-libdvdcss2/ sh ~/Desktop/START_HERE/enable_DVD-playback fi # ----------------------------------- if [ "$choice" = "Exit" ]; then exit 0 fi exit 0