summaryrefslogtreecommitdiffstats
path: root/core/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2022-09-13 12:05:56 +0200
committerSimon Rettberg2022-09-13 12:05:56 +0200
commit1f1ab5cdba1c59297709d950758adff208c36f78 (patch)
treeb41b971627758abfe35cf230b5abf96f4bae7075 /core/rootfs
parent[systemd-distro] Copy system's hwdb.bin (diff)
downloadmltk-1f1ab5cdba1c59297709d950758adff208c36f78.tar.gz
mltk-1f1ab5cdba1c59297709d950758adff208c36f78.tar.xz
mltk-1f1ab5cdba1c59297709d950758adff208c36f78.zip
[rootfs-stage32] Kill any already running ldconfig before starting one
Diffstat (limited to 'core/rootfs')
-rwxr-xr-xcore/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons
index e4730a46..d446583b 100755
--- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons
+++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons
@@ -107,6 +107,7 @@ if [ -x "$ADDON_MOUNT_POINT/addon-init" ]; then
fi
if ! grep -q -F '/opt/openslx/mnt/stage4' '/proc/mounts'; then
echo "Running ldconfig"
+ killall ldconfig ldconfig.real # Stop any running instance, we have new data now
ldconfig 2> /dev/null || ldconfig.real 2> /dev/null
echo "ldconfig completed"
fi