#!/bin/sh -e

browser_dirs="@browser_dirs@"
PLUGIN=@plugin_name@
PLUGINPTH=/@basedir@/jre/lib/@archdir@/$PLUGIN

for browser_dir in $browser_dirs; do
    if [ $browser_dir = xulrunner-addons ]; then
        browser=xulrunner-1.9
    else
        browser=$browser_dir
    fi
    update-alternatives --quiet --remove \
	$browser-javaplugin.so \
	$PLUGINPTH
done

#DEBHELPER#
