135c4bbdfSmrg#!/bin/sh
235c4bbdfSmrg#
335c4bbdfSmrg# Execute Xorg.wrap if it exists otherwise execute Xorg directly.
435c4bbdfSmrg# This allows distros to put the suid wrapper in a separate package.
535c4bbdfSmrg
635c4bbdfSmrgbasedir=@SUID_WRAPPER_DIR@
735c4bbdfSmrgif [ -x "$basedir"/Xorg.wrap ]; then
835c4bbdfSmrg	exec "$basedir"/Xorg.wrap "$@"
935c4bbdfSmrgelse
1035c4bbdfSmrg	exec "$basedir"/Xorg "$@"
1135c4bbdfSmrgfi
12