Skip to content

Instantly share code, notes, and snippets.

@173210
Created March 23, 2015 09:47
Show Gist options
  • Save 173210/3415b1617652f38711af to your computer and use it in GitHub Desktop.
Save 173210/3415b1617652f38711af to your computer and use it in GitHub Desktop.
A script for update-initramfs to include EDID file
#!/bin/sh -e
PREREQS=""
prereqs() {
echo "$PREREQS";
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
while read LINE
do
FILE=${LINE#*:}
mkdir -p "$DESTDIR/lib/firmware/${FILE%*/}"
copy_exec "/lib/firmware/$FILE"
done < /sys/module/drm_kms_helper/parameters/edid_firmware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment