#!/bin/sh
#
# Note that any setup should come before the sessreg command as
# that must be 'exec'ed for the pid to be correct (sessreg uses the parent
# pid)
#
# Note that output goes into the .xsession-errors file for easy debugging
#
PATH="/usr/X11R6/bin:$PATH"

# /etc/X11/xenodm/GiveConsole, fbtab(5)
if [ -c /dev/drm0 ]; then
    /sbin/chown $USER /dev/drm0
fi
if [ -c /dev/drmR128 ]; then
    /sbin/chown $USER /dev/drmR128
fi
