#!/bin/sh # by Chris_(medico_2001) # for Klikit-Linux # GPL - June 2007 xterm -e sudo killall synaptic apt-get dpkg adept firefox-bin export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit-Linux Wizard" \ --backtitle " Install Adobe Flash Player plugin " \ --radiolist "The latest stable Adobe Flash Player plugin (9.0r48) is already included in Klikit-Linux.\n This wizard will switch the installed stable version to the latest beta version (9.0r64) or viceversa.\n The advantages of the beta version are: * Support for H.264 video and HE-AAC audio codecs, * Multi-core support for vector rendering, * Full screen mode with hardware scaling, * Flash Player cache for common platform components, such as the Flex framework, * Support for Microsoft Active Accessibility (MSAA) in the Windows plug-in, and * better A/V sync.\n IMPORTANT: Using this package implies that you have accepted the terms of the license.\n" 45 80 0 \ "Beta" "Switch the Adobe Flash player plugin from stable to beta" on \ "Stable" "Switch the Adobe Flash player plugin from beta to stable " off \ "License" "Read Adobe Flash Player plugin License" off \ "Remove" "Remove the Adobe Flash player plugin(s)" 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" = "Beta" ]; then xterm -e sudo rm -rf /usr/lib/mozilla/plugins/libflashplayer.stable.so xterm -e sudo ln -s /usr/lib/mozilla/plugins/flash_plugin/beta/libflashplayer.beta.so /usr/lib/mozilla/plugins/libflashplayer.beta.so kdialog --title="klikit info" --msgbox "the Adobe Flash Player plugin was successfully switched to the beta release" fi # ----------------------------------- if [ "$choice" = "Stable" ]; then xterm -e sudo rm -rf /usr/lib/mozilla/plugins/libflashplayer.beta.so xterm -e sudo ln -s /usr/lib/mozilla/plugins/flash_plugin/stable/libflashplayer.stable.so /usr/lib/mozilla/plugins/libflashplayer.stable.so kdialog --title="klikit info" --msgbox "the Adobe Flash Player plugin was successfully switched to the Stable release" fi # ----------------------------------- if [ "$choice" = "Remove" ]; then xterm -e sudo rm -rf /usr/lib/mozilla/plugins/*flash* xterm -e sudo rm -rf /usr/lib/mozilla/plugins/flash_plugin kdialog --title="klikit info" --msgbox "The Adobe Flash Player plugin(s) were successfully removed" fi # ----------------------------------- if [ "$choice" = "License" ]; then firefox http://www.adobe.com/products/eulas/players/flash/ sh ~/Desktop/START_HERE/Install_flash-player fi # ----------------------------------- if [ "$choice" = "Exit" ]; then exit 0 fi exit 0