--- smage/trunk/core/slim/mcore/files/slim.rc 2011/02/04 21:39:37 1269 +++ smage/trunk/core/slim/mcore/files/slim.rc 2011/02/04 21:40:21 1270 @@ -28,6 +28,18 @@ start-stop-daemon --stop --quiet --exe /usr/bin/slim evaluate_retval + # chvt to 1 + if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]] + then + # only do it, if fbsplash is *not* running (busybox hack) + if [[ -z $(pidof fbsplash) ]] + then + # wait until slim was stopped - ugly hack + while [[ -z $(pidof slim) ]]; do sleep 0.1; done + [[ $(fgconsole) -ne 1 ]] && chvt 1 + fi + fi + update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;;