summaryrefslogtreecommitdiffstats
path: root/system/prelink/prelink-all
blob: f75be7d5f8123b8660864c68fd079dc4205e5700 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# This small script can be used for prelinking whole system while in root
# account. It will do a -amR on the system according to /etc/prelink.conf
# Check prelink(8) for details.

renice +19 -p $$ > /dev/null 2>&1

PRELINKOPTS=${PRELINKOPTS:-amR}

/usr/sbin/prelink -$PRELINKOPTS