#!/bin/sh

if [ "$LUBIN" != "" ]; then
    #
    # Live Upgrade.  
    #
    # Do nothing
    :
elif [ "$PKG_INSTALL_ROOT" != "" -a "$PKG_INSTALL_ROOT" != "/" ]; then
    #
    # Installation to an alternate root directory
    #
    # Do nothing
    :
else
    if [ -f /usr/bin/update-mime-database  -a -f /usr/share/mime/packages/realplay.xml ] ; then
        /usr/bin/update-mime-database /usr/share/mime
    fi
fi

