#!/bin/sh # prerm script for lliurex-flashplugin set -e VARIANTS="iceweasel mozilla firefox xulrunner midbrowser xulrunner-addons" case "$1" in remove|upgrade|deconfigure|failed-upgrade|abort-upgrade) rm -rf /usr/lib/lliurex-flashplugin/* for p in $VARIANTS; do update-alternatives --remove "$p-flashplugin" /usr/lib/flashplugin-nonfree/libflashplayer.so || true done for p in $VARIANTS; do update-alternatives --remove "$p-flashplugin" /var/lib/flashplugin-nonfree/npwrapper.libflashplayer.so || true done for p in $VARIANTS; do [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \ update-alternatives --remove-all "$p-flashplugin" || true done ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0