From: Grazvydas Ignotas Date: Sun, 5 Jul 2015 23:55:06 +0000 (+0300) Subject: slim: another chvt hack X-Git-Tag: sz_172rc~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=fdd6dc3205cd4d4f2e7918854ecd103611686bfe;hp=2d544427afa5450df6b66a7a932173670a12c2f4 slim: another chvt hack --- diff --git a/recipes/slim/slim/chvt_on_exit_try2.patch b/recipes/slim/slim/chvt_on_exit_try2.patch index c767e24..8c846f3 100644 --- a/recipes/slim/slim/chvt_on_exit_try2.patch +++ b/recipes/slim/slim/chvt_on_exit_try2.patch @@ -1,13 +1,13 @@ diff -ur slim-1.3.1_/main.cpp slim-1.3.1/main.cpp --- slim-1.3.1_/main.cpp 2008-09-26 03:54:15.000000000 +0300 -+++ slim-1.3.1/main.cpp 2015-07-05 18:56:57.865387688 +0300 ++++ slim-1.3.1/main.cpp 2015-07-06 02:40:17.534545611 +0300 @@ -14,7 +14,13 @@ App* LoginApp = 0; +static void do_chvt(void) +{ -+ system("/usr/bin/chvt 1"); ++ system("if [ \"`/sbin/runlevel | awk '{print $2}'`\" = \"5\" ]; then /usr/bin/chvt 1; fi"); +} + int main(int argc, char** argv) {