Magellan Linux

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

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

revision 1270 by niro, Fri Feb 4 21:40:21 2011 UTC revision 1654 by niro, Thu Mar 10 21:16:22 2011 UTC
# Line 25  case $1 in Line 25  case $1 in
25                  ;;                  ;;
26   stop)   stop)
27   rc_print "Stopping slim ..."   rc_print "Stopping slim ..."
28   start-stop-daemon --stop --quiet --exe /usr/bin/slim   #start-stop-daemon --stop --quiet --exec /usr/bin/slim
29     # use killall here to prevent flickers of fbsplash while switching vts on killing
30     killall /usr/bin/slim
31   evaluate_retval   evaluate_retval
32    
33   # chvt to 1  # # chvt to 1
34   if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]]  # if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]]
35   then  # then
36   # only do it, if fbsplash is *not* running (busybox hack)  # # only do it, if fbsplash is *not* running (busybox hack)
37   if [[ -z $(pidof fbsplash) ]]  # if [[ -z $(pidof fbsplash) ]]
38   then  # then
39   # wait until slim was stopped - ugly hack    # # wait until slim was stopped - ugly hack  
40   while [[ -z $(pidof slim) ]]; do sleep 0.1; done  # while [[ -z $(pidof slim) ]]; do sleep 0.1; done
41   [[ $(fgconsole) -ne 1 ]] && chvt 1  # [[ $(fgconsole) -ne 1 ]] && chvt 1
42   fi  # fi
43   fi  # fi
44    
45   update_svcstatus $1   update_svcstatus $1
46   splash svc_stopped "$(basename $0)" 0   splash svc_stopped "$(basename $0)" 0
# Line 49  case $1 in Line 51  case $1 in
51   sleep 1   sleep 1
52   $0 start   $0 start
53   ;;   ;;
54    
55   status)   status)
56   statusproc /usr/bin/slim   statusproc /usr/bin/slim
57   ;;   ;;

Legend:
Removed from v.1270  
changed lines
  Added in v.1654