#!/bin/bash PATH_TO_FIREFOX_PLUGINS="/usr/lib/firefox-addons/plugins/" NAME="IcedTeaPlugin.so" zero-center add-pulsating-color zero-lliurex-icedtea8plugin apt-get update apt-get install icedtea-8-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-icedtea8plugin zero-center set-configured zero-lliurex-icedtea8plugin exit 0