Magellan Linux

Contents of /branches/unlabeled-1.1.1/magellan-initscripts/etc/X11/startxdm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 826 byte(s)
imported.

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 xdm|XDM)
17 GLOGINCMD="$(which xdm 2> /dev/null)"
18 if [ ! -f "${GLOGINCMD}" ]
19 then
20 echo "Failure: XDM Login Manager not found."
21 exit 1
22 fi
23 ;;
24 *)
25 GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)"
26 if [ ! -e "${GLOGINCMD}" ]
27 then
28 echo "Failure: \"${GLOGIN}\" Login Manager not found."
29 exit 1
30 fi
31 ;;
32 esac
33 }
34
35
36 if [ -n "$GLOGIN" ]
37 then
38 get_login
39 /sbin/start-stop-daemon --start --quiet --exec ${GLOGINCMD}
40 retval="$?"
41 sleep 5
42
43 if [ "${retval}" -ne 0 ]
44 then
45 echo "Couln't start your Displaymanager"
46 killall -9 ${GLOGIN##*/}
47 fi
48 fi

Properties

Name Value
svn:executable *