From f2e5acf72a3837998698b5eaa16a12334229e954 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 2 Sep 2023 21:05:13 +0200 Subject: [PATCH] Update 80-configuration.sh --- webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh b/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh index 29e611a0c..24070ceaa 100755 --- a/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh +++ b/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh @@ -2,7 +2,15 @@ # shellcheck shell=bash # shellcheck disable=SC2015 -exit 0 +# Install rpi video drivers +if bashio::config.true 'rpi_video_drivers'; then + bashio::log.info "Installing Rpi graphic drivers" + if [ "$PACKMANAGER" = "apk" ]; then + apk add --no-cache "mesa-dri-vc4 mesa-dri-swrast mesa-gbm xf86-video-fbdev" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found") + elif [ "$PACKMANAGER" = "apt" ]; then + apt-get install -yqq --no-install-recommends "mesa*" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found") + fi +fi # Install specific apps if bashio::config.has_value 'additional_apps'; then