Magellan Linux

Annotation of /trunk/xorg/startxdm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations) (download)
Sat Jul 2 17:07:55 2005 UTC (18 years, 10 months ago) by niro
File size: 988 byte(s)
new

1 niro 28 #!/bin/bash
2     # $Header: /root/magellan-cvs/src/xorg/startxdm,v 1.1 2005-07-02 17:07:55 niro Exp $
3    
4     source /etc/profile
5     source /etc/rc.config
6    
7     # enable antialias by default for gnome
8     export GDK_USE_XFT=1
9    
10     get_login() {
11     case "${GLOGIN}" in
12     kdm|KDM)
13     GLOGINCMD="$(which kdm 2> /dev/null)"
14     if [ ! -f "${GLOGINCMD}" ]
15     then
16     echo "Failure: KDE Login Manager not found."
17     exit 1
18     fi
19     ;;
20    
21     xdm|XDM)
22     GLOGINCMD="$(which xdm 2> /dev/null)"
23     if [ ! -f "${GLOGINCMD}" ]
24     then
25     echo "Failure: XDM Login Manager not found."
26     exit 1
27     fi
28     ;;
29    
30     *)
31     GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)"
32     if [ ! -e "${GLOGINCMD}" ]
33     then
34     echo "Failure: \"${GLOGIN}\" Login Manager not found."
35     exit 1
36     fi
37     ;;
38    
39     esac
40     }
41    
42    
43     if [ -n "${GLOGIN}" ]
44     then
45     get_login
46     /sbin/start-stop-daemon --start --quiet --exec ${GLOGINCMD}
47     retval="$?"
48     wait; sleep 2
49    
50     if [ "${retval}" -ne 0 ]
51     then
52     echo "Could not start your Displaymanager"
53     killall -9 ${GLOGIN##*/}
54     fi
55     fi

Properties

Name Value
svn:executable *