UpdateLdSoCache


#!/bin/sh

# Updates /etc/ld.so.cache such that imported shared libs become visible.

# This script was written by Stephan Seidl in 2012, no copyright is claimed.
# It is offered as-is, without any warranty.
# This script is in the public domain; do with it what you wish.

unset LANG LC_ALL
LC_ALL=C
export LC_ALL

test -e /jffs/etc/ld.so.cache || exit 0

grep -q " /etc/ld.so.cache " /proc/mounts || mount -o bind /jffs/etc/ld.so.cache /etc/ld.so.cache


Stephan K.H. Seidl