summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wrapper.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/wrapper.in b/scripts/wrapper.in
index 1c501eb..b4dfc97 100644
--- a/scripts/wrapper.in
+++ b/scripts/wrapper.in
@@ -1,5 +1,10 @@
#!/bin/sh
+# this wrapper will not work under BSD systems or others
+# not containig the GNU readlink.
+# Under those, wrapper.c will forcibly be used
+# regardless of the config file setting.
+
canonicalizedname=$(readlink -nm "${0}")
dirname="$(dirname "${canonicalizedname}")"
basename="$(basename "${canonicalizedname}")"