Magellan Linux

Diff of /smage/trunk/core/slim/mcore/files/slim.rc

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

smage/trunk/extras/slim/mcore/files/slim.rc revision 1173 by niro, Fri Jan 28 00:02:01 2011 UTC smage/trunk/core/slim/mcore/files/slim.rc revision 1271 by niro, Fri Feb 4 21:43:23 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /magellan-cvs/src/xorg/xdm.rc,v 1.3 2008/12/26 02:04:07 niro Exp $  # $Header: /magellan-cvs/src/xorg/xdm.rc,v 1.3 2008/12/26 02:04:07 niro Exp $
3    
4  #%rlevels: 5:s 0:k 1:k 2:k 3:k 4:k 6:k  #%rlevels: 3:s 0:k
5  #%start: 95  #%start: 95
6  #%stop: 05  #%stop: 05
7    
# Line 16  source /etc/profile Line 16  source /etc/profile
16    
17  case $1 in  case $1 in
18   start)   start)
19   echo -e ${COLOREDSTAR}"Starting slim ..."   rc_print "Starting slim ..."
20   /sbin/start-stop-daemon --start --quiet --exec /usr/bin/slim   /sbin/start-stop-daemon --start --quiet --exec /usr/bin/slim
21   evaluate_retval   evaluate_retval
22    
# Line 24  case $1 in Line 24  case $1 in
24   splash svc_started "$(basename $0)" 0   splash svc_started "$(basename $0)" 0
25                  ;;                  ;;
26   stop)   stop)
27     rc_print "Stopping slim ..."
28   start-stop-daemon --stop --quiet --exe /usr/bin/slim   start-stop-daemon --stop --quiet --exe /usr/bin/slim
29   evaluate_retval   evaluate_retval
30    
31    # # chvt to 1
32    # if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]]
33    # then
34    # # only do it, if fbsplash is *not* running (busybox hack)
35    # if [[ -z $(pidof fbsplash) ]]
36    # then
37    # # wait until slim was stopped - ugly hack  
38    # while [[ -z $(pidof slim) ]]; do sleep 0.1; done
39    # [[ $(fgconsole) -ne 1 ]] && chvt 1
40    # fi
41    # fi
42    
43   update_svcstatus $1   update_svcstatus $1
44   splash svc_stopped "$(basename $0)" 0   splash svc_stopped "$(basename $0)" 0
45   ;;   ;;
# Line 36  case $1 in Line 49  case $1 in
49   sleep 1   sleep 1
50   $0 start   $0 start
51   ;;   ;;
52    
53   status)   status)
54   statusproc /usr/bin/slim   statusproc /usr/bin/slim
55   ;;   ;;

Legend:
Removed from v.1173  
changed lines
  Added in v.1271