aboutsummaryrefslogtreecommitdiff
path: root/system/prelink/prelink-all
diff options
context:
space:
mode:
authorOzan Türkyılmaz <ozan.turkyilmaz@gmail.com>2011-01-01 12:05:52 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-01-02 00:27:36 -0600
commitf9e5f10b3219cbe7cf9a2dbce9ae0194b2e9facf (patch)
tree9da2c28330e8a8fdc7b15a80cce5abfbcf44f3e3 /system/prelink/prelink-all
parentbee81b221f3034142a27f0678bf83fe5b6491bfa (diff)
system/prelink: Miscellaneous build fixes.
Added two helper scripts and a warning in the README. Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/prelink/prelink-all')
-rw-r--r--system/prelink/prelink-all11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/prelink/prelink-all b/system/prelink/prelink-all
new file mode 100644
index 0000000000000..f75be7d5f8123
--- /dev/null
+++ b/system/prelink/prelink-all
@@ -0,0 +1,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