On Thu, Mar 19, 2015 at 4:09 PM, Aníbal Limón <[email protected]> wrote: > Hi, > > > On 19/03/15 13:04, Otavio Salvador wrote: >> >> On Thu, Mar 19, 2015 at 7:52 AM, Aníbal Limón >> <[email protected]> wrote: >>> >>> When change between runlevel 5 to another non-graphic runlevel >>> the console stays in the tty where X was launched. >>> >>> This patchs add a default switch to tty1. >>> >>> [YOCTO #5336] >>> >>> Signed-off-by: Aníbal Limón <[email protected]> >>> --- >>> .../initscripts/initscripts-1.0/changetodefaultvt.sh | 10 >>> ++++++++++ >>> meta/recipes-core/initscripts/initscripts_1.0.bb | 8 >>> ++++++++ >>> 2 files changed, 18 insertions(+) >>> create mode 100755 >>> meta/recipes-core/initscripts/initscripts-1.0/changetodefaultvt.sh >>> >>> diff --git >>> a/meta/recipes-core/initscripts/initscripts-1.0/changetodefaultvt.sh >>> b/meta/recipes-core/initscripts/initscripts-1.0/changetodefaultvt.sh >>> new file mode 100755 >>> index 0000000..bbef7ed >>> --- /dev/null >>> +++ b/meta/recipes-core/initscripts/initscripts-1.0/changetodefaultvt.sh >>> @@ -0,0 +1,10 @@ >>> +#!/bin/sh >>> +### BEGIN INIT INFO >>> +# Provides: changetodefaultvt >>> +# Required-Start: >>> +# Required-Stop: >>> +# Default-Start: 1 2 3 4 >>> +# Default-Stop: >>> +### END INIT INFO >>> + >>> +chvt 1 >> >> You didn't answer the question. How general use distros are handling >> this? It seems hackish! > > Yes, its like hackish this is handled by display manager but we don't have > one in sato. > > I think it need to by installed by xserver-nodm-init instead of here. I'll > send another version.
Now it starts to make some sense. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
