aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xfree86/Xorg.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/xfree86/Xorg.sh.in')
-rw-r--r--xorg-server/hw/xfree86/Xorg.sh.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/xorg-server/hw/xfree86/Xorg.sh.in b/xorg-server/hw/xfree86/Xorg.sh.in
new file mode 100644
index 000000000..cef4859c8
--- /dev/null
+++ b/xorg-server/hw/xfree86/Xorg.sh.in
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Execute Xorg.wrap if it exists otherwise execute Xorg.bin directly.
+# This allows distros to put the suid wrapper in a separate package.
+
+basedir=@SUID_WRAPPER_DIR@
+if [ -x "$basedir"/Xorg.wrap ]; then
+ exec "$basedir"/Xorg.wrap "$@"
+else
+ exec "$basedir"/Xorg.bin "$@"
+fi