File: run-ldconfig

package info (click to toggle)
libaal 1.0.7-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,768 kB
  • sloc: sh: 4,118; ansic: 2,461; makefile: 52
file content (26 lines) | stat: -rwxr-xr-x 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

ldc="";
if [ -x /sbin/ldconfig ]; then 
	ldc="/sbin/ldconfig"; 
fi
if test x$ldc = x; then
	which ldconfig > /dev/null 2>&1
	if test $? -eq 0; then 
		ldc=`which ldconfig`; 
	fi
fi
if test x$ldc = x; then
	echo ;
	echo "ldconfig is not available";
	echo "do not forget to run ldconfig manually";
	echo ;
	exit 1;
fi
cp /etc/ld.so.conf /tmp/ld.$$.so.conf;
echo $1 >> /tmp/ld.$$.so.conf;
echo ;
echo Running $ldc;
$ldc -f /tmp/ld.$$.so.conf;
echo ;
rm /tmp/ld.$$.so.conf;