29 |
GLOGINCMD="$(which kdm 2> /dev/null)" |
GLOGINCMD="$(which kdm 2> /dev/null)" |
30 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
31 |
then |
then |
32 |
echo "Failure: KDE Login Manager not found." |
rc_echo "Failure: KDE Login Manager not found." |
33 |
exit 1 |
exit 1 |
34 |
fi |
fi |
35 |
;; |
;; |
43 |
fi |
fi |
44 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
45 |
then |
then |
46 |
echo "Failure: GNOME Login Manager not found." |
rc_echo "Failure: GNOME Login Manager not found." |
47 |
exit 1 |
exit 1 |
48 |
fi |
fi |
49 |
;; |
;; |
52 |
GLOGINCMD="$(which entranced 2> /dev/null)" |
GLOGINCMD="$(which entranced 2> /dev/null)" |
53 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
54 |
then |
then |
55 |
echo "Failure: Enlightenment Login Manager not found." |
rc_echo "Failure: Enlightenment Login Manager not found." |
56 |
exit 1 |
exit 1 |
57 |
fi |
fi |
58 |
;; |
;; |
61 |
GLOGINCMD="$(which wdm 2> /dev/null)" |
GLOGINCMD="$(which wdm 2> /dev/null)" |
62 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
63 |
then |
then |
64 |
echo "Failure: Windowmaker Login Manager not found." |
rc_echo "Failure: Windowmaker Login Manager not found." |
65 |
exit 1 |
exit 1 |
66 |
fi |
fi |
67 |
;; |
;; |
70 |
GLOGINCMD="$(which xdm 2> /dev/null)" |
GLOGINCMD="$(which xdm 2> /dev/null)" |
71 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
72 |
then |
then |
73 |
echo "Failure: XDM Login Manager not found." |
rc_echo "Failure: XDM Login Manager not found." |
74 |
exit 1 |
exit 1 |
75 |
fi |
fi |
76 |
;; |
;; |
79 |
GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)" |
GLOGINCMD="$(which ${GLOGIN} 2> /dev/null)" |
80 |
if [ ! -f "${GLOGINCMD}" ] |
if [ ! -f "${GLOGINCMD}" ] |
81 |
then |
then |
82 |
echo "Failure: \"${GLOGIN}\" Login Manager not found." |
rc_echo "Failure: \"${GLOGIN}\" Login Manager not found." |
83 |
exit 1 |
exit 1 |
84 |
fi |
fi |
85 |
;; |
;; |
89 |
case "${XDM_OPT}" in |
case "${XDM_OPT}" in |
90 |
start) |
start) |
91 |
get_login |
get_login |
92 |
echo -e ${COLOREDSTAR}"Starting ${GLOGIN} ..." |
rc_print "Starting ${GLOGIN} ..." |
93 |
/sbin/telinit a |
/sbin/telinit a |
94 |
evaluate_retval |
evaluate_retval |
95 |
|
|
100 |
get_login |
get_login |
101 |
if [ -n "$(ps -A|grep $(basename ${GLOGINCMD}))" ] |
if [ -n "$(ps -A|grep $(basename ${GLOGINCMD}))" ] |
102 |
then |
then |
103 |
echo -e ${COLOREDSTAR}"Stopping ${GLOGIN} ..." |
rc_print "Stopping ${GLOGIN} ..." |
104 |
|
|
105 |
CUR_VT=$(fgconsole) |
CUR_VT=$(fgconsole) |
106 |
start-stop-daemon --stop --quiet --exe ${GLOGINCMD} |
start-stop-daemon --stop --quiet --exe ${GLOGINCMD} |
121 |
statusproc ${GLOGINCMD} |
statusproc ${GLOGINCMD} |
122 |
;; |
;; |
123 |
*) |
*) |
124 |
echo "Usage: $0 {start|stop|restart|status}" |
rc_echo "Usage: $0 {start|stop|restart|status}" |
125 |
exit 1 |
exit 1 |
126 |
;; |
;; |
127 |
esac |
esac |