Magellan Linux

Diff of /trunk/xorg/xdm.rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 732 by niro, Fri Dec 26 02:04:07 2008 UTC revision 1191 by niro, Thu Nov 18 18:56:55 2010 UTC
# Line 29  get_login() { Line 29  get_login() {
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   ;;   ;;
# Line 43  get_login() { Line 43  get_login() {
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   ;;   ;;
# Line 52  get_login() { Line 52  get_login() {
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   ;;   ;;
# Line 61  get_login() { Line 61  get_login() {
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   ;;   ;;
# Line 70  get_login() { Line 70  get_login() {
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   ;;   ;;
# Line 79  get_login() { Line 79  get_login() {
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   ;;   ;;
# Line 89  get_login() { Line 89  get_login() {
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    
# Line 100  case "${XDM_OPT}" in Line 100  case "${XDM_OPT}" in
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}
# Line 121  case "${XDM_OPT}" in Line 121  case "${XDM_OPT}" in
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

Legend:
Removed from v.732  
changed lines
  Added in v.1191