mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
init: clean up splash image selection
This commit is contained in:
parent
b50aa11e7d
commit
3e1563cb68
@ -409,21 +409,17 @@ load_splash() {
|
|||||||
if [ -z "$SPLASHIMAGE" ]; then
|
if [ -z "$SPLASHIMAGE" ]; then
|
||||||
vres="$(fbset 2>/dev/null | awk '/geometry/ { print $3 }')"
|
vres="$(fbset 2>/dev/null | awk '/geometry/ { print $3 }')"
|
||||||
|
|
||||||
if [ -f /flash/oemsplash.png -o -f /flash/oemsplash-1080.png ]; then
|
for s in /flash/oemsplash-${vres}.png \
|
||||||
if [ -n "$vres" -a -f /flash/oemsplash-$vres.png ]; then
|
/flash/oemsplash-1080.png \
|
||||||
SPLASHIMAGE="/flash/oemsplash-$vres.png"
|
/flash/oemsplash.png \
|
||||||
elif [ -f /flash/oemsplash-1080.png ]; then
|
/splash/splash-${vres}.png \
|
||||||
SPLASHIMAGE="/flash/oemsplash-1080.png"
|
/splash/splash-1080.png \
|
||||||
else
|
; do
|
||||||
SPLASHIMAGE="/flash/oemsplash.png"
|
if [ -f "${s}" ]; then
|
||||||
fi
|
SPLASHIMAGE="${s}"
|
||||||
else
|
break
|
||||||
if [ -n "$vres" -a -f /splash/splash-$vres.png ]; then
|
|
||||||
SPLASHIMAGE="/splash/splash-$vres.png"
|
|
||||||
else
|
|
||||||
SPLASHIMAGE="/splash/splash-1080.png"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$SPLASHIMAGE" -a -f "$SPLASHIMAGE" ]; then
|
if [ -n "$SPLASHIMAGE" -a -f "$SPLASHIMAGE" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user