Created
March 23, 2015 09:47
-
-
Save 173210/3415b1617652f38711af to your computer and use it in GitHub Desktop.
A script for update-initramfs to include EDID file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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