summaryrefslogtreecommitdiff
path: root/system/prelink/prelink-all
diff options
context:
space:
mode:
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 0000000000..f75be7d5f8
--- /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