2
MOZHOME=/usr/lib/firefox-1.5.0.9
4
echo "Cleaning up user plugins"
5
if [ -f ${HOME}/.mozilla/plugins/mplayerplug-in.so ]; then rm ${HOME}/.mozilla/plugins/mplayerplug-in*; fi
6
if [ `whoami` == 'root' ]; then
7
echo "Cleaning up system plugins"
8
if [ -z ${MOZHOME} ]; then
10
MOZHOME=`grep MOZILLA_FIVE_HOME= ${MOZ} | awk -F \" '{ print $2 }'`
11
if [ -z ${MOZHOME} ]; then MOZHOME=`grep moz_libdir= ${MOZ} | awk -F \" '{ print $2 }'`; fi
13
if [ -z ${MOZHOME} ]; then echo "Can't find MOZILLA HOME. Please uninstall manually"; exit 1; fi
14
if [ -f ${MOZHOME}/plugins/mplayerplug-in.so ]; then rm ${MOZHOME}/plugins/mplayerplug-in*; fi
15
if [ -f ${MOZHOME}/components/mplayerplug-in.xpt ]; then rm ${MOZHOME}/components/mplayerplug-in*; fi
16
if [ "x${MOZ}" != "x" ]; then
17
MOZPLUGINS=`grep MOZ_PLUGIN_PATH ${MOZ} | awk -F = '{ print $2 }' | awk -F : '{ if ( $1 != "") if ( index($1,"_PLUGIN_") == 0) print $1 }'`
18
if [ -f ${MOZPLUGINS}/mplayerplug-in.so ]; then rm ${MOZPLUGINS}/mplayerplug-in*; fi