#!/bin/sh # if [[ "`echo $! |grep wdm`" ]] ; then if [[ "$DISPLAY" ]] ; then echo "$! $0" > /root/execname.txt if [ -e $HOME/.xinitrc ]; then echo "Starting User Default Xsession" . $HOME/.xinitrc else echo "Sorry no .xinitrc file found in your \$HOME directory." > /dev/console exit 1 fi else echo "Do not call xsession directly!" echo "xsession is meant to be called by WDM." fi