aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config-edid-fixup.sh
blob: 9b8055963a9191a85fc469d84efbb126780b82b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

image="$1"
edid="${2-1920x1080.bin}"

if test "$image" = ""; then
	echo "usage: $0 <image> [ <edid> ]"
	exit 1
fi

base="$(dirname $0)"
file="${base}/../edid/$edid"

set -ex
virt-customize -a "$image" --no-network		\
	--mkdir "/lib/firmware/edid"		\
	--copy-in "$file:/lib/firmware/edid"	\
	--write "/etc/modprobe.d/edid-fixup.conf:options drm_kms_helper edid_firmware=edid/$edid"