2014-09-27 11:52:59 -06:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2015-09-16 13:10:19 -06:00
|
|
|
# Execute Xorg.wrap if it exists otherwise execute Xorg directly.
|
2014-09-27 11:52:59 -06:00
|
|
|
# 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
|
2015-09-16 13:10:19 -06:00
|
|
|
exec "$basedir"/Xorg "$@"
|
2014-09-27 11:52:59 -06:00
|
|
|
fi
|