summarylogtreecommitdiffstats
path: root/ksm-wrapper
diff options
context:
space:
mode:
authorScore_Under2015-10-27 19:12:32 +0000
committerScore_Under2015-10-27 19:19:51 +0000
commit14259cf22b2897e34cbd3b2df2c6a9032ea9692e (patch)
tree64406d0890e8f0f7028b5fec8e74712fed268d2d /ksm-wrapper
downloadaur-14259cf22b2897e34cbd3b2df2c6a9032ea9692e.tar.gz
Initial commit
Diffstat (limited to 'ksm-wrapper')
-rwxr-xr-xksm-wrapper8
1 files changed, 8 insertions, 0 deletions
diff --git a/ksm-wrapper b/ksm-wrapper
new file mode 100755
index 000000000000..6535f4945115
--- /dev/null
+++ b/ksm-wrapper
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Rewrite of ksm-wrapper to work in /usr/bin
+case " $LD_PRELOAD " in
+ (*" ksm_preload.so "*) ;;
+ (*) LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD }ksm_preload.so"
+ export LD_PRELOAD;;
+esac
+exec "$@"