#!/bin/sh

. config/options $1

if [ "$2" = initramfs ]; then
  mkdir -p $INSTALL/initramfs/bin
    cp $PKG_BUILD/ply-image $INSTALL/initramfs/bin

  mkdir -p $INSTALL/initramfs
    if [ -f $PROJECT_DIR/$PROJECT/splash/splash.png ]; then
      cp $PROJECT_DIR/$PROJECT/splash/splash.png $INSTALL/initramfs/
    else
      cp $PKG_DIR/splash/splash.png $INSTALL/initramfs/
    fi

  exit 0
fi
