#!/bin/sh

PREREQ="kernelextras"

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

mkdir -p ${DESTDIR}/usr/bin
mkdir -p ${DESTDIR}/usr/lib/usplash

if [ -x /usr/bin/suspend2ui_usplash ]; then
	copy_exec /usr/bin/suspend2ui_usplash /usr/bin
	if [ -f /usr/lib/usplash/usplash-artwork.so ]; then
    		copy_exec /usr/lib/usplash/usplash-artwork.so /usr/lib/usplash
	fi
	if [ -f /etc/usplash.conf ]; then
		copy_exec /etc/usplash.conf /etc
	fi
fi

if [ -x /usr/bin/suspend2ui_text ]; then
	copy_exec /usr/bin/suspend2ui_text /usr/bin
fi

if [ -x /usr/bin/suspend2ui_fbsplash ]; then
	copy_exec /usr/bin/suspend2ui_fbsplash /usr/bin
fi
