[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: annoucement: auto-login patch for xdm

I have this script as /etc/init.d/startmyx.  It auto-logs me in on tty9, and
xdm can still run on tty7.

It could be modified to run xdm after startx finishes.

So my question is: who really needs a patch to xdm?

Please always Cc to me when replying to me on the lists.

"Real hackers mostly think crackers are lazy, irresponsible, and not very
bright, and object that being able to break security doesn't make you a
hacker any more than being able to hotwire cars makes you an automotive
   -- The Hacker HOWTO

Dwayne C. Litzenberger - dlitz@cheerful.com

See the mail headers for GPG/advertising/homepage information.
# /etc/init.d/startmyx: start or stop primary user's X session
FLAGS="defaults 99"

set -e


test -x $DAEMON || exit 0

case "$1" in
    #[ "$2" != "now" ] && sleep 8s
    echo -n "Starting X session: startx"
    cd ~dwon
    /bin/su - dwon -c "/usr/X11R6/bin/startx -- :2 vt9 -dpi 100 -deferglyphs all" </dev/tty9 >/dev/tty9 2>&1 & echo $! >$PIDFILE
    echo "."

    /etc/init.d/startmyx stop
    /etc/init.d/startmyx start

    echo -n "Stopping X session: startx"
    kill `cat $PIDFILE` || echo -n " not running"
    echo "."

    echo "Usage: /etc/init.d/startmyx {start|stop|restart}"
    exit 1

exit 0

Attachment: pgpS3K3J3WQJW.pgp
Description: PGP signature

Reply to: