#!/usr/bin/env bash
#
# This script update splashes on the product
# There is 3 splashes:
#   - u-boot splash
#   - fb splash: psplash
#   - x11 splash: x11-splash
# Splash to use is store in /etc/bootsplash.conf

SUCCESS=0

# change u-boot splash
install-bootsplash
SUCCESS=$(($SUCCESS + $?))

# change psplash
update-psplash
SUCCESS=$(($SUCCESS + $?))

# Nothing to do for x11, launch script read the file by itself.

exit ${SUCCESS}