#!/bin/sh # # /etc/X11/xdm/Xsetup_0 # # This script is run whenever xdm is asked to manage a display on :0 if grep -qs ^run-xconsole /etc/X11/xdm/xdm.options; then # kill any running xconsole pid=$(cat /var/run/xconsole_0.pid 2>/dev/null) if [ "$pid" ]; then kill $pid 2> /dev/null fi rm -f /var/run/xconsole_0.pid # start fresh xconsole and store its PID xconsole -geometry 480x130-0-0 -notify -verbose -fn fixed \ -exitOnFail -file /dev/xconsole & echo $! > /var/run/xconsole_0.pid fi # XBanner - begin if grep -qs ^run-xbanner /etc/X11/xdm/xdm.options; then /usr/X11R6/bin/freetemp /usr/X11R6/bin/xbanner -file /etc/X11/XBanner.ad fi # XBanner - end if grep -qs ^run-xmatrix /etc/X11/xdm/xdm.options; then # kill any running xmatrix pid=$(cat /var/run/xmatrix_0.pid 2>/dev/null) if [ "$pid" ]; then kill -9 $pid 2> /dev/null fi rm -f /var/run/xconsole_0.pid xmatrix -root & echo $! > /var/run/xmatrix_0.pid fi