#!/bin/bash# Description : Iceweasel temp installerURL="http://gnuzilla.gnu.org/download/iceweasel-1.5.0.7-g1-i386.tar.bz2"ICEWEASELTAR=`basename "http://gnuzilla.gnu.org/download/iceweasel-1.5.0.7-g1-i386.tar.bz2"`ICEWEASELDIR=${ICEWEASELTAR%.tar.bz2}TARGET="/opt/iceweasel"MFplugs="/usr/lib/mozilla-firefox/plugins"Fplugs="/usr/lib/firefox/plugins"if [ $UID -ne 0 ]; then echo "you must be root to run this script" exit 1fiif [ -e /usr/bin/firefox ]; then dpkg -P firefoxficd /optwget $URL && tar xjf $ICEWEASELTARmv $ICEWEASELDIR $TARGETcd $TARGET/pluginsif [ -e $MFplugs ]; then for plugin in $MFplugs/* ; do ln -s $plugin &>/dev/null donefiif [ -e $Fplugs ]; then for plugin in $Fplugs/* ; do ln -s $plugin &>/dev/null doneficd /usr/bin/ && ln -s $TARGET/iceweaselchmod +x $TARGET/iceweaselecho -e "all done when deb packages hits the mirrors:"echo -e "\tin case you decide to apt-get from the official mirrors, "echo -e "\tthe symlink shoud be overwritten"echo -e "\tmake sure you erase de $TARGET directory after that happens"echo -e "\n\nFor the moment enjoy ;-)"