#!/bin/sh

PREREQ=""

prereqs()
{
        echo "$PREREQ"
}

case $1 in
prereqs)
        prereqs
        exit 0
        ;;
esac

# Hooks for loading asahi modules and firmware

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

mkdir -p "${DESTDIR}/lib/firmware"
mkdir -p "${DESTDIR}/usr/share/asahi-scripts"
cp -r /usr/share/asahi-scripts/* "${DESTDIR}/usr/share/asahi-scripts"

# Debian
copy_exec /usr/bin/cpio
copy_exec /usr/bin/cut
copy_exec /usr/bin/dirname
copy_exec /usr/bin/grep
copy_exec /usr/bin/mkdir
copy_exec /usr/bin/modprobe
copy_exec /usr/bin/seq
copy_exec /usr/bin/sleep

manual_add_modules vfat
manual_add_modules nls_ascii
manual_add_modules nls_cp437

add_modules_from_file /usr/share/asahi-scripts/modules
