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 |
# # chvt to 1 |
32 |
if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]] |
# if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]] |
33 |
then |
# then |
34 |
# only do it, if fbsplash is *not* running (busybox hack) |
# # only do it, if fbsplash is *not* running (busybox hack) |
35 |
if [[ -z $(pidof fbsplash) ]] |
# if [[ -z $(pidof fbsplash) ]] |
36 |
then |
# then |
37 |
# wait until slim was stopped - ugly hack |
# # wait until slim was stopped - ugly hack |
38 |
while [[ -z $(pidof slim) ]]; do sleep 0.1; done |
# while [[ -z $(pidof slim) ]]; do sleep 0.1; done |
39 |
[[ $(fgconsole) -ne 1 ]] && chvt 1 |
# [[ $(fgconsole) -ne 1 ]] && chvt 1 |
40 |
fi |
# fi |
41 |
fi |
# fi |
42 |
|
|
43 |
update_svcstatus $1 |
update_svcstatus $1 |
44 |
splash svc_stopped "$(basename $0)" 0 |
splash svc_stopped "$(basename $0)" 0 |
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 |
;; |
;; |