#!/bin/sh echo "# generated by ldconfig.sh from ld.so.conf.d" > /etc/ld.so.conf cat /etc/ld.so.conf.d/* | while read dir; do test -e $dir && echo $dir >> /etc/ld.so.conf done ldconfig