Contents of /trunk/xorg-old/files-6.8.2-r10/startxdm
Parent Directory | Revision Log
Revision 167 -
(show annotations)
(download)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 1008 byte(s)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 1008 byte(s)
-import
1 | #!/bin/bash |
2 | # $Header: /root/magellan-cvs/src/xorg-old/files-6.8.2-r10/startxdm,v 1.1 2007-05-08 20:58:48 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 |