1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /root/magellan-cvs/src/xorg/xdm.rc,v 1.1 2005-07-02 17:07:55 niro Exp $ |
# $Header: /root/magellan-cvs/src/xorg/xdm.rc,v 1.2 2006-02-19 15:04:15 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 5:s 0:k 1:k 2:k 3:k 4:k 6:k |
#%rlevels: 5:s 0:k 1:k 2:k 3:k 4:k 6:k |
5 |
#%start: 95 |
#%start: 95 |
33 |
exit 1 |
exit 1 |
34 |
fi |
fi |
35 |
;; |
;; |
36 |
|
|
37 |
gdm|GDM) |
gdm|GDM) |
38 |
if [[ ${XDM_OPT} = stop ]] |
if [[ ${XDM_OPT} = stop ]] |
39 |
then |
then |
43 |
fi |
fi |
44 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
45 |
then |
then |
46 |
echo "Failure: KDE Login Manager not found." |
echo "Failure: GNOME Login Manager not found." |
47 |
exit 1 |
exit 1 |
48 |
fi |
fi |
49 |
;; |
;; |
50 |
|
|
51 |
|
entrance*|ENTRANCE*) |
52 |
|
GLOGINCMD="$(which entranced 2> /dev/null)" |
53 |
|
if [ ! -f "${GLOGINCMD}" ] |
54 |
|
then |
55 |
|
echo "Failure: Enlightenment Login Manager not found." |
56 |
|
exit 1 |
57 |
|
fi |
58 |
|
;; |
59 |
|
|
60 |
|
wdm|WDM) |
61 |
|
GLOGINCMD="$(which wdm 2> /dev/null)" |
62 |
|
if [ ! -f "${GLOGINCMD}" ] |
63 |
|
then |
64 |
|
echo "Failure: Windowmaker Login Manager not found." |
65 |
|
exit 1 |
66 |
|
fi |
67 |
|
;; |
68 |
|
|
69 |
xdm|XDM) |
xdm|XDM) |
70 |
GLOGINCMD="$(which xdm 2> /dev/null)" |
GLOGINCMD="$(which xdm 2> /dev/null)" |
71 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
74 |
exit 1 |
exit 1 |
75 |
fi |
fi |
76 |
;; |
;; |
77 |
|
|
78 |
*) |
*) |
79 |
GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)" |
GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)" |
80 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
82 |
echo "Failure: \"${GLOGIN}\" Login Manager not found." |
echo "Failure: \"${GLOGIN}\" Login Manager not found." |
83 |
exit 1 |
exit 1 |
84 |
fi |
fi |
85 |
|
;; |
86 |
esac |
esac |
87 |
} |
} |
88 |
|
|