5
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
6
update-alternatives --install /usr/bin/x-www-browser \
7
x-www-browser /usr/bin/firefox-3.0 40
10
echo "Please restart all running instances of Firefox-3.0, or you will experience problems."
12
UPDATENOTIFIERDIR=/var/lib/update-notifier/user.d
14
if [ -d $UPDATENOTIFIERDIR ] ; then
15
# pgrep matches application names from /proc/<pid>/status which is
16
# truncated according to sys/procfs.h definition. Problem is it's
17
# platform dependent. Either 15 or 16 chars.
18
if [ `/usr/bin/pgrep -c firefox-3.0` -ne 0 ] || \
19
[ `/usr/bin/pgrep -c firefox-3.0-bin` -ne 0 ] ; then
20
cp -f /usr/share/firefox-3.0/firefox-3.0-restart-required.update-notifier \
21
"$UPDATENOTIFIERDIR/firefox-3.0-restart-required"
25
# Clean a possible left over
26
if [ -f $UPDATENOTIFIERDIR/firefox-trunk-restart-required ] ; then
27
rm -f $UPDATENOTIFIERDIR/firefox-trunk-restart-required