]> code.ossystems Code Review - openembedded-core.git/commitdiff
xserver-nodm-init: Change to vt1 when stop
authorAníbal Limón <anibal.limon@linux.intel.com>
Thu, 19 Mar 2015 13:45:49 +0000 (13:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Mar 2015 09:42:40 +0000 (09:42 +0000)
When X is stopped it remains in the same vt that was launched,
change to vt1 instead to avoid manual vt switch.

[YOCTO #5336]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm

index ef6c11c3f2b996e4bb307297b6bfe755222c4e09..2e3e0907779245eb3e40bacf0530da5eef9267af 100755 (executable)
@@ -48,6 +48,7 @@ case "$1" in
   stop)
         echo "Stopping XServer"
         killproc xinit
+        chvt 1
   ;;
 
   restart)