Magellan Linux

Contents of /trunk/magellan-initscripts/etc/X11/startxdm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations) (download)
Fri Dec 31 18:46:13 2004 UTC (19 years, 4 months ago) by niro
File size: 841 byte(s)
fixed startup on slow systems

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

Properties

Name Value
svn:executable *