1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /root/magellan-cvs/src/xorg/startxdm,v 1.1 2005-07-02 17:07:55 niro Exp $ |
# $Header: /root/magellan-cvs/src/xorg/startxdm,v 1.2 2006-02-19 15:03:35 niro Exp $ |
3 |
|
|
4 |
source /etc/profile |
source /etc/profile |
5 |
source /etc/rc.config |
source /etc/rc.config |
18 |
fi |
fi |
19 |
;; |
;; |
20 |
|
|
21 |
|
gdm|GDM) |
22 |
|
GLOGINCMD="$(which gdm 2> /dev/null)" |
23 |
|
if [ ! -f "${GLOGINCMD}" ] |
24 |
|
then |
25 |
|
echo "Failure: GNOME Login Manager not found." |
26 |
|
exit 1 |
27 |
|
fi |
28 |
|
;; |
29 |
|
|
30 |
|
entrance*|ENTRANCE*) |
31 |
|
GLOGINCMD="$(which entranced 2> /dev/null)" |
32 |
|
if [ ! -f "${GLOGINCMD}" ] |
33 |
|
then |
34 |
|
echo "Failure: Enlightenment Login Manager not found." |
35 |
|
exit 1 |
36 |
|
fi |
37 |
|
;; |
38 |
|
|
39 |
|
wdm|WDM) |
40 |
|
GLOGINCMD="$(which wdm 2> /dev/null)" |
41 |
|
if [ ! -f "${GLOGINCMD}" ] |
42 |
|
then |
43 |
|
echo "Failure: Windowmaker Login Manager not found." |
44 |
|
exit 1 |
45 |
|
fi |
46 |
|
;; |
47 |
|
|
48 |
xdm|XDM) |
xdm|XDM) |
49 |
GLOGINCMD="$(which xdm 2> /dev/null)" |
GLOGINCMD="$(which xdm 2> /dev/null)" |
50 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
54 |
fi |
fi |
55 |
;; |
;; |
56 |
|
|
57 |
*) |
*) |
58 |
GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)" |
GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)" |
59 |
if [ ! -e "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
60 |
then |
then |
61 |
echo "Failure: \"${GLOGIN}\" Login Manager not found." |
echo "Failure: \"${GLOGIN}\" Login Manager not found." |
62 |
exit 1 |
exit 1 |
63 |
fi |
fi |
64 |
;; |
;; |
|
|
|
65 |
esac |
esac |
66 |
} |
} |
67 |
|
|