#!/bin/bash # Description : Iceweasel temp installer URL="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 1 fi if [ -e /usr/bin/firefox ]; then dpkg -P firefox fi cd /opt wget $URL && tar xjf $ICEWEASELTAR mv $ICEWEASELDIR $TARGET cd $TARGET/plugins if [ -e $MFplugs ]; then for plugin in $MFplugs/* ; do ln -s $plugin &>/dev/null done fi if [ -e $Fplugs ]; then for plugin in $Fplugs/* ; do ln -s $plugin &>/dev/null done fi cd /usr/bin/ && ln -s $TARGET/iceweasel chmod +x $TARGET/iceweasel echo -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 ;-)"