File: run-ldconfig

package info (click to toggle)
reiser4progs 1.0.7-6.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 5,364 kB
  • sloc: ansic: 33,475; sh: 8,489; makefile: 1,004
file content (26 lines) | stat: -rwxr-xr-x 482 bytes parent folder | download | duplicates (13)
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/bash

ldc="";
if [ -x /sbin/ldconfig ]; then 
	ldc="/sbin/ldconfig"; 
fi
if test x$ldc = x; then
	which ldconfig 2>&1>/dev/null;
	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;