Return to fix_ldconfig CVS log | Up to [local] / openbsd / fill_chroot |
File: [local] / openbsd / fill_chroot / fix_ldconfig (download)
Revision 1.6, Thu Oct 19 16:24:00 2006 UTC (17 years, 8 months ago) by andrew
I guess the version I had here was better |
#!/bin/sh # $RedRiver: fix_ldconfig,v 1.5 2006/08/13 17:24:38 andrew Exp $ CHROOT=${CHROOT:=/var/www} if [ X"${CHROOT}" == X"" ]; then echo No CHROOT Specified! exit 255 fi mkdir -p ${CHROOT}/bin mkdir -p ${CHROOT}/var/run for p in /usr/lib /usr/X11R6/lib /usr/local/lib; do if [ -d ${CHROOT}${p} ]; then LD_PATH="${LD_PATH} ${p}" fi done if [ ! X"${LD_PATH}" == X"" ]; then cp /sbin/ldconfig ${CHROOT}/bin echo running: /bin/ldconfig ${LD_PATH} chroot ${CHROOT} /bin/ldconfig ${LD_PATH} #chroot ${CHROOT} /bin/ldconfig -r rm -f ${CHROOT}/bin/ldconfig fi