#!/bin/sh
# Description: Launch Mandrake Configuration for the first time.
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
# 	$Id: mandrake_firstime,v 1.18 2003/09/04 14:10:01 tvignaud Exp $	

FLO=/var/log/first_boot_log
touch $FLO

. /etc/rc.d/init.d/functions

# If fail erase the temporary file
trap 'rm -f /var/lock/TMP_1ST' 1 2 3 15

#Rebuild Mozilla registry
# be sure that mozilla registry is ok
for MOZ_REBUILD_DATABASE in /usr/lib*/mozilla-*/mozilla-rebuild-databases.pl; do
[ -x $MOZ_REBUILD_DATABASE ] &&
{
 action "Building Mozilla registry" $MOZ_REBUILD_DATABASE 2>> $FLO
}
done


[ -s $FLO ] || rm -f $FLO

# Finish
rm -f /var/lock/TMP_1ST
