#!/bin/bash PATH_TO_FIREFOX_PLUGINS="/usr/lib/firefox-addons/plugins/" NAME="IcedTeaPlugin.so" zero-center add-pulsating-color zero-lliurex-icedtea7plugin-installer apt-get update apt-get install icedtea-7-plugin if [ ! -d $PATH_TO_FIREFOX_PLUGINS ]; then mkdir -p $PATH_TO_FIREFOX_PLUGINS fi PATH_TO_SO=$(find /usr/lib/jvm -name IcedTeaPlugin.so) if [ ! -L $PATH_TO_FIREFOX_PLUGINS$NAME ]; then ln -s $PATH_TO_SO $PATH_TO_FIREFOX_PLUGINS fi zero-center remove-pulsating-color zero-lliurex-icedtea7plugin-installer zero-center set-configured zero-lliurex-icedtea7plugin-installer exit 0