#!/bin/sh # by Chris_(medico_2001) # for Klikit-Linux # GPL - December 2007 export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit-Linux Wizard" \ --backtitle " Install the w32codecs package " \ --radiolist "Due to 'possible' patent restrictions these codecs can not be included in Klikit-Linux. Using this wizard, the package will be downloaded, installed and configured automatically\n The codecs included are ATI VCR-2 video, Cinepak video, DivX ;-) video ver. 3.11 and 4.x, Indeo Video 3.2/4.1/5.0/4.1 quick/5.0 quick, Intel 263 video, Microsoft MPEG-4 video beta version 3.0.0.2700, Morgan Multimedia Motion JPEG video,QuickTime, RealAudio, RealVideo 8 and 9, and Windows Media Video 9 \n IMPORTANT: Installing this package implies that you are aware of the patent restrictions involved.\n" 38 75 0 \ "Install" "Install the w32codecs package" on \ "Info" "read info about this package" off \ "Remove" "Remove the w32codecs package 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 cd /tmp/ xterm -e wget http://www.klikit-linux.com/packages/w32codecs_20071007.tar.gz xterm -e tar xvfz w32codecs_20071007.tar.gz cd /tmp/w32codecs_20071007 xterm -e sudo cp -rf usr / cd .. xterm -e sudo rm -rf w32codecs_20071007.* kdialog --title="klikit info" --msgbox "the w32 codecs package was successfully installed" fi # ----------------------------------- if [ "$choice" = "Remove" ]; then cd /usr/lib xterm -e sudo rm -rf win32 kdialog --title="klikit info" --msgbox "the w32 codecs package 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/Install_w32codecs fi # ----------------------------------- if [ "$choice" = "Exit" ]; then exit 0 fi exit 0