#!/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"

GROUP=`id -g $USER`
# /etc/X11/xenodm/GiveConsole, fbtab(5)
if [ -c /dev/dri/card0 ]; then
    /sbin/chown $USER:$GROUP /dev/dri/card0
fi
if [ -c /dev/dri/renderD128 ]; then
    /sbin/chown $USER:$GROUP /dev/dri/renderD128
fi
