From: Arne Fitzenreiter Date: Fri, 28 Jul 2023 16:19:16 +0000 (+0200) Subject: core177: remove rngd if the addon was not installed via pakfire X-Git-Tag: v2.27-core177~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ffe9b67de2fad230ea28200cd5c5b79d586c793;p=ipfire-2.x.git core177: remove rngd if the addon was not installed via pakfire the old version is linked against the old openssl and will fail. fixes: #13197 Signed-off-by: Arne Fitzenreiter Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/177/update.sh b/config/rootfiles/core/177/update.sh index 8180799405..2347afbdba 100644 --- a/config/rootfiles/core/177/update.sh +++ b/config/rootfiles/core/177/update.sh @@ -97,6 +97,15 @@ rm -f \ /opt/pakfire/db/meta/meta-squidclamav \ /opt/pakfire/db/rootfiles/squidclamav +# remove old rngd if the addon is not installed +if [ ! -e "/opt/pakfire/db/installed/meta-rng-tools" ]; then + rm -rf /usr/bin/randstat \ + /usr/bin/rngtest \ + /usr/sbin/rngd \ + /etc/rc.d/init.d/rngd \ + /etc/rc.d/rc?.d/*rmgd +fi + # Extract files extract_files @@ -168,3 +177,4 @@ sync # Don't report the exitcode last command exit 0 +