[busybox] getedid fixes

This commit is contained in:
DaVukovic 2020-01-26 09:41:31 +01:00
parent 5c83a514f6
commit 751f49eec5

View File

@ -142,6 +142,9 @@ create_edid() {
# create edid
mkdir -p /tmp/cpio/lib/firmware/edid
cat "/sys/class/drm/$card/edid" > /tmp/cpio/lib/firmware/edid/edid.bin
mkdir -p /storage/.config/firmware/edid
cp /tmp/cpio/lib/firmware/edid/edid.bin /storage/.config/firmware/edid
# create cpio archive
cd /tmp/cpio/
@ -182,12 +185,8 @@ intel_amd() {
#check kernel version
check_kernel
# add boot parameters to $file in relation to the used kernel
if [ "$kernel" -lt "415000" ]; then
sed -i "/ APPEND/s/$/ initrd=\/edid.cpio drm_kms_helper.edid_firmware=$hdmi:edid\/edid.bin video=$hdmi:D/" "$file"
else
sed -i "/ APPEND/s/$/ initrd=\/edid.cpio drm.edid_firmware=edid\/edid.bin video=$hdmi:D/" "$file"
fi
# add boot parameters to $file
sed -i "/ APPEND/s/$/ initrd=\/edid.cpio drm.edid_firmware=edid\/edid.bin video=$hdmi:D/" "$file"
# reboot
sys_reboot