#!/bin/sh
# Staged file only. After explicit Go, install as an initramfs-tools hook.
set -eu
PREREQ=""
prereqs() { echo "$PREREQ"; }
case "${1:-}" in prereqs) prereqs; exit 0 ;; esac
. /usr/share/initramfs-tools/hook-functions
manual_add_modules gpu_unlock
for name in booter_load_ga102.bin gsp_ga10x.bin gsp_boot_ga102.bin gsp_boot_desc_ga102.bin v67-ga102-610.43.03.bin; do
    src="/usr/lib/firmware/gpu-unlock/610.43.03/$name"
    # copy_file returns 1 when a previous hook already included the same file.
    [ -e "${DESTDIR}${src}" ] || copy_file firmware "$src"
done
