#!/bin/sh # postinst script for lliurex-flashplugin # set -e VARIANTS="iceape iceweasel mozilla firefox xulrunner midbrowser xulrunner-addons" case "$1" in configure) if test ! -x /usr/bin/nspluginwrapper; then for p in $VARIANTS; do update-alternatives --install "/usr/lib/$p/plugins/flashplugin-alternative.so" "$p-flashplugin" /usr/lib/lliurex-flashplugin/libflashplayer.so 75 done else NSPLUGIN_DIR=/var/lib/lliurex-flashplugin/ /usr/bin/nspluginwrapper -n -i /usr/lib/lliurex-flashplugin/libflashplayer.so for p in $VARIANTS; do update-alternatives --install "/usr/lib/$p/plugins/flashplugin-alternative.so" "$p-flashplugin" /var/lib/lliurex-flashplugin/npwrapper.libflashplayer.so 75 done fi ;; abort-upgrade|abort-remove|abort-deconfigure) echo "postinst called with argument \`$1'" >&2 exit 1 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0