OSDN Git Service

init: avoid virtual console be set blanked
authorChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 1 Jan 2012 19:16:41 +0000 (03:16 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 25 Jul 2013 07:20:08 +0000 (15:20 +0800)
init/init.c

index 6ee9fe0..9d0023e 100755 (executable)
@@ -566,8 +566,8 @@ static int console_init_action(int nargs, char **args)
     if( load_565rle_image(INIT_IMAGE_FILE) ) {
         fd = open("/dev/tty0", O_WRONLY);
         if (fd >= 0) {
-            const char *msg;
-                msg = "\n"
+            const char *msg =
+            "\033[9;0]\n"
             "\n"
             "\n"
             "\n"