mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #405 from MilhouseVH/splash_native_update
init: Parse resolution after splash.conf
This commit is contained in:
commit
9e7b6e7134
@ -167,6 +167,10 @@
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug_msg() {
|
||||||
|
echo "$1" >&$SILENT_OUT
|
||||||
|
}
|
||||||
|
|
||||||
debug_shell() {
|
debug_shell() {
|
||||||
echo "### Starting debugging shell... type exit to quit ###"
|
echo "### Starting debugging shell... type exit to quit ###"
|
||||||
|
|
||||||
@ -433,24 +437,38 @@
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Select splash image based on current native resolution
|
|
||||||
if [ -z "$SPLASHIMAGE" ]; then
|
|
||||||
vres="$(fbset | awk '/geometry/ { print $3 }')"
|
|
||||||
if [ -n "$vres" -a -f /splash/splash-$vres.png ]; then
|
|
||||||
SPLASHIMAGE="/splash/splash-$vres.png"
|
|
||||||
else
|
|
||||||
SPLASHIMAGE="/splash/splash-1080.png"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# load splash
|
# load splash
|
||||||
if [ -f /flash/oemsplash.png ]; then
|
if [ -f /splash/splash.conf ]; then
|
||||||
SPLASHIMAGE="/flash/oemsplash.png"
|
|
||||||
elif [ -f /splash/splash.conf ]; then
|
|
||||||
. /splash/splash.conf
|
. /splash/splash.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ply-image $SPLASHIMAGE > /dev/null 2>&1
|
# Select splash image based on current native resolution
|
||||||
|
if [ -z "$SPLASHIMAGE" ]; then
|
||||||
|
vres="$(fbset 2>/dev/null | awk '/geometry/ { print $3 }')"
|
||||||
|
|
||||||
|
if [ -f /flash/oemsplash.png -o -f /flash/oemsplash-1080.png ]; then
|
||||||
|
if [ -n "$vres" -a -f /flash/oemsplash-$vres.png ]; then
|
||||||
|
SPLASHIMAGE="/flash/oemsplash-$vres.png"
|
||||||
|
elif [ -f /flash/oemsplash-1080.png ]; then
|
||||||
|
SPLASHIMAGE="/flash/oemsplash-1080.png"
|
||||||
|
else
|
||||||
|
SPLASHIMAGE="/flash/oemsplash.png"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ -n "$vres" -a -f /splash/splash-$vres.png ]; then
|
||||||
|
SPLASHIMAGE="/splash/splash-$vres.png"
|
||||||
|
else
|
||||||
|
SPLASHIMAGE="/splash/splash-1080.png"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$SPLASHIMAGE" -a -f "$SPLASHIMAGE" ]; then
|
||||||
|
ply-image $SPLASHIMAGE > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
debug_msg "Framebuffer vertical res: $vres"
|
||||||
|
debug_msg "Framebuffer splash image: $SPLASHIMAGE"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user