mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
Merge pull request #3143 from DaVukovic/getedid_fixup
[busybox] Fixed 'getedid delete' section
This commit is contained in:
commit
99f4e4b151
@ -50,7 +50,6 @@ del_edid() {
|
|||||||
mv "$file".old "$file"
|
mv "$file".old "$file"
|
||||||
rm -f /flash/edid.cpio
|
rm -f /flash/edid.cpio
|
||||||
mount_ro
|
mount_ro
|
||||||
rm -fr /storage/.config/firmware
|
|
||||||
sys_reboot
|
sys_reboot
|
||||||
else
|
else
|
||||||
echo "You don't have a backup file for $file. You did not use this script to create the custom EDID"
|
echo "You don't have a backup file for $file. You did not use this script to create the custom EDID"
|
||||||
@ -139,6 +138,17 @@ check_kernel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
create_edid() {
|
||||||
|
# create edid
|
||||||
|
mkdir -p /tmp/cpio/lib/firmware/edid
|
||||||
|
cat "/sys/class/drm/$card/edid" > /tmp/cpio/lib/firmware/edid/edid.bin
|
||||||
|
|
||||||
|
# create cpio archive
|
||||||
|
cd /tmp/cpio/
|
||||||
|
find . -print | cpio -ov -H newc > /storage/edid.cpio
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
intel_amd() {
|
intel_amd() {
|
||||||
# check which output is connnected:
|
# check which output is connnected:
|
||||||
counter=0
|
counter=0
|
||||||
@ -155,18 +165,8 @@ intel_amd() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
#create edid
|
# create the edid
|
||||||
mkdir -p /storage/.config/firmware/edid
|
create_edid
|
||||||
cat "/sys/class/drm/$card/edid" > /storage/.config/firmware/edid/edid.bin
|
|
||||||
|
|
||||||
#create cpio archive
|
|
||||||
cd /storage
|
|
||||||
mkdir -p cpio/lib/firmware/edid
|
|
||||||
cp /storage/.config/firmware/edid/edid.bin /storage/cpio/lib/firmware/edid/
|
|
||||||
cd cpio/
|
|
||||||
find . -print | cpio -ov -H newc > /storage/edid.cpio
|
|
||||||
cd /storage
|
|
||||||
rm -rf cpio
|
|
||||||
|
|
||||||
# check extlinux.conf and syslinux.cfg
|
# check extlinux.conf and syslinux.cfg
|
||||||
check_file
|
check_file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user