]> git.ipfire.org Git - people/mlorenz/ipfire-2.x.git/commitdiff
core177: remove rngd if the addon was not installed via pakfire
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 28 Jul 2023 16:19:16 +0000 (18:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Jul 2023 16:19:56 +0000 (16:19 +0000)
the old version is linked against the old openssl and will fail.

fixes: #13197

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/177/update.sh

index 81807994057f268221aa7de656a8a90a6af764c4..2347afbdba8ff03473e081faf312fecc0edde0ae 100644 (file)
@@ -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
+