#!/bin/sh

if [ $# -ne 2 ]; then
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
    exit 1
fi

case $2 in
    POST-INSTALL)
        echo "Downloading Mozilla's root certificates and importing into the Mono Trust store..."
        ${PKG_PREFIX}/bin/mozroots --import --sync
        ;;
esac

exit 0
