#!/bin/sh

. config/options $1

$SCRIPTS/install busybox
$SCRIPTS/install bash
$SCRIPTS/install dialog
$SCRIPTS/install parted
$SCRIPTS/install e2fsprogs
$SCRIPTS/install syslinux
$SCRIPTS/install flashrom

mkdir -p $INSTALL/usr/bin
  cp $PKG_DIR/scripts/installer $INSTALL/usr/bin

mkdir -p $INSTALL/etc
  if [ -f $PROJECT_DIR/$PROJECT/installer/installer.conf ]; then
    cp $PROJECT_DIR/$PROJECT/installer/installer.conf $INSTALL/etc
  else
    cp $PKG_DIR/config/installer.conf $INSTALL/etc
  fi
