mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
busybox: find extlinux on alternative /flash layouts
This commit is contained in:
parent
f7812aaf95
commit
9ca8e10854
@ -6,8 +6,9 @@
|
||||
COMPATIBLE=$(cat /proc/device-tree/compatible 2>/dev/null | tr -d '\000' | sed -n -e 's/.*\(allwinner\|amlogic\|fsl\|nxp\|qcom\|raspberrypi\|rockchip\|samsung\).*/\1/p')
|
||||
|
||||
do_dtfile(){
|
||||
if [ -e /flash/extlinux/extlinux.conf ]; then
|
||||
DTFILE=$(grep FDT /flash/extlinux/extlinux.conf | sed 's,^ *FDT /,,g')
|
||||
if [[ -n $(find /flash -name extlinux.conf) ]]; then
|
||||
EXTLINUX=$(find /flash -name extlinux.conf)
|
||||
DTFILE=$(grep FDT "${EXTLINUX}" | sed 's,^ *FDT /,,g')
|
||||
elif [ -e /flash/boot.ini ]; then
|
||||
DTFILE=$(grep -m 1 dtb_name /flash/boot.ini | cut -d \" -f2 | sed 's,/dtb/,,g')
|
||||
elif [ -e /flash/uEnv.ini ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user