xref: /OK3568_Linux_fs/external/xserver/hw/xfree86/Xorg.sh.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2#
3# Execute Xorg.wrap if it exists otherwise execute Xorg directly.
4# This allows distros to put the suid wrapper in a separate package.
5
6basedir=@SUID_WRAPPER_DIR@
7if [ -x "$basedir"/Xorg.wrap ]; then
8	exec "$basedir"/Xorg.wrap "$@"
9else
10	exec "$basedir"/Xorg "$@"
11fi
12