mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
cleanup scripts: config/
This commit is contained in:
parent
289c09bb53
commit
5275163ab0
@ -8,4 +8,4 @@ name="$(basename $0)"
|
|||||||
oe_setup_addon "$name"
|
oe_setup_addon "$name"
|
||||||
|
|
||||||
docker rm "$name" 2>/dev/null
|
docker rm "$name" 2>/dev/null
|
||||||
docker run --name="$name" \
|
docker run --name="$name"
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
MOUNTPOINT="/tmp/LibreELEC-System"
|
MOUNTPOINT="/tmp/LibreELEC-System"
|
||||||
|
|
||||||
md5sumCheck() {
|
md5sumCheck() {
|
||||||
( cd $MOUNTPOINT
|
(
|
||||||
|
cd $MOUNTPOINT
|
||||||
echo "checking MD5: $1"
|
echo "checking MD5: $1"
|
||||||
md5sum -c $1.md5
|
md5sum -c $1.md5
|
||||||
if [ "$?" = "1" ]; then
|
if [ "$?" = "1" ]; then
|
||||||
@ -35,19 +36,19 @@ if [ -z $part1 -o -z $part2 -o -z $id1 -o -z $id2 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# create mountpoint
|
# create mountpoint
|
||||||
mkdir -p $MOUNTPOINT
|
mkdir -p $MOUNTPOINT
|
||||||
|
|
||||||
# mount needed partition
|
# mount needed partition
|
||||||
mount $part1 $MOUNTPOINT
|
mount $part1 $MOUNTPOINT
|
||||||
|
|
||||||
# check md5sum
|
# check md5sum
|
||||||
md5sumCheck kernel.img
|
md5sumCheck kernel.img
|
||||||
md5sumCheck SYSTEM
|
md5sumCheck SYSTEM
|
||||||
|
|
||||||
# create bootloader configuration
|
# create bootloader configuration
|
||||||
echo "creating bootloader configuration..."
|
echo "creating bootloader configuration..."
|
||||||
echo "boot=$id1 disk=$id2 quiet @EXTRA_CMDLINE@" > $MOUNTPOINT/cmdline.txt
|
echo "boot=$id1 disk=$id2 quiet @EXTRA_CMDLINE@" >$MOUNTPOINT/cmdline.txt
|
||||||
|
|
||||||
# cleanup mountpoint
|
# cleanup mountpoint
|
||||||
umount $MOUNTPOINT
|
umount $MOUNTPOINT
|
||||||
rmdir $MOUNTPOINT
|
rmdir $MOUNTPOINT
|
||||||
|
@ -37,7 +37,7 @@ show_config() {
|
|||||||
config_message+="\n - LLVM support:\t\t\t ${LLVM_SUPPORT}"
|
config_message+="\n - LLVM support:\t\t\t ${LLVM_SUPPORT}"
|
||||||
config_message+="\n - DEBUG:\t\t\t\t ${DEBUG:-no}"
|
config_message+="\n - DEBUG:\t\t\t\t ${DEBUG:-no}"
|
||||||
config_message+="\n - CFLAGS:\t\t\t\t ${TARGET_CFLAGS}"
|
config_message+="\n - CFLAGS:\t\t\t\t ${TARGET_CFLAGS}"
|
||||||
config_message+="\n - LDFLAGS:\t\t\t\t $(sed 's/^ *//' <<< ${TARGET_LDFLAGS})"
|
config_message+="\n - LDFLAGS:\t\t\t\t $(sed 's/^ *//' <<<${TARGET_LDFLAGS})"
|
||||||
config_message+="\n - Local Ccache:\t\t\t ${LOCAL_CCACHE:-no}"
|
config_message+="\n - Local Ccache:\t\t\t ${LOCAL_CCACHE:-no}"
|
||||||
|
|
||||||
# Misc. hardware configuration
|
# Misc. hardware configuration
|
||||||
@ -103,7 +103,7 @@ show_config() {
|
|||||||
config_message+="\n ${dashes}${dashes}"
|
config_message+="\n ${dashes}${dashes}"
|
||||||
config_message+="\n - Graphic Drivers:\t\t\t ${GRAPHIC_DRIVERS}"
|
config_message+="\n - Graphic Drivers:\t\t\t ${GRAPHIC_DRIVERS}"
|
||||||
config_message+="\n - Display Server:\t\t\t ${DISPLAYSERVER}"
|
config_message+="\n - Display Server:\t\t\t ${DISPLAYSERVER}"
|
||||||
if [ "${DISPLAYSERVER}" = "x11" ] ; then
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
||||||
for drv in ${XORG_DRIVERS}; do
|
for drv in ${XORG_DRIVERS}; do
|
||||||
XORG_DRIVERS_CONFIG+="xf86-video-${drv} "
|
XORG_DRIVERS_CONFIG+="xf86-video-${drv} "
|
||||||
done
|
done
|
||||||
@ -112,11 +112,11 @@ show_config() {
|
|||||||
fi
|
fi
|
||||||
config_message+="\n - Window Manager / Compositor:\t\t ${WINDOWMANAGER}"
|
config_message+="\n - Window Manager / Compositor:\t\t ${WINDOWMANAGER}"
|
||||||
config_message+="\n - OpenGL (GLX) support (provider):\t ${OPENGL_SUPPORT}"
|
config_message+="\n - OpenGL (GLX) support (provider):\t ${OPENGL_SUPPORT}"
|
||||||
[ "${OPENGL}" != "no" ] && config_message+=" (${OPENGL})"
|
[ "${OPENGL}" != "no" ] && config_message+=" (${OPENGL})"
|
||||||
config_message+="\n - OpenGL ES support (provider):\t ${OPENGLES_SUPPORT}"
|
config_message+="\n - OpenGL ES support (provider):\t ${OPENGLES_SUPPORT}"
|
||||||
[ "${OPENGLES}" != "no" ] && config_message+=" (${OPENGLES})"
|
[ "${OPENGLES}" != "no" ] && config_message+=" (${OPENGLES})"
|
||||||
config_message+="\n - Vulkan API support (provider):\t ${VULKAN_SUPPORT}"
|
config_message+="\n - Vulkan API support (provider):\t ${VULKAN_SUPPORT}"
|
||||||
[ "${VULKAN}" != "no" ] && config_message+=" (${VULKAN})"
|
[ "${VULKAN}" != "no" ] && config_message+=" (${VULKAN})"
|
||||||
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
|
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
|
||||||
config_message+="\n - Vulkan Graphic Drivers:\t\t ${VULKAN_DRIVERS_CONFIG}"
|
config_message+="\n - Vulkan Graphic Drivers:\t\t ${VULKAN_DRIVERS_CONFIG}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user