summaryrefslogtreecommitdiffstats
path: root/projectroot/etc/rc.once.d/prelink
blob: 52682a55f97e81009b80e159082e47d372feadae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

SKIP_ON_NFSROOT=@NFSSKIP@

if [ "$SKIP_ON_NFSROOT" = "yes" ]; then
	if cat /proc/cmdline | grep -q 'root=/dev/nfs'; then
		echo "Skipping prelink on nfsroot"
		exit 0
	fi
fi

echo "running prelink..."

cat /etc/prelink.conf /etc/prelink.conf.d/* > /tmp/prelink.conf 2>/dev/null

prelink -afR -c /tmp/prelink.conf