#!/bin/sh

set -e

UBOOT_DIR="/usr/lib/u-boot/"

case "$1" in
    configure)
        echo ""
        echo " Please note that the U-Boot binaries have been unpacked but no deployment has been performed."
        echo " In case you want to deploy the bootloader you need to copy or flash the binaries manually to the appropriate location depending on your hardware and boot configuration."
        echo " You can find the artifacts in:"
        echo " ${UBOOT_DIR}"
        echo ""
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        # No special handling needed for these cases
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0

