File: run-ldconfig

package info (click to toggle)
reiser4progs 1.0.9-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,608 kB
  • ctags: 3,844
  • sloc: ansic: 33,541; sh: 10,679; makefile: 1,010
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;