Remove gratuitous and unnecessary "BusyBox" refernece in login prompt
[oweals/busybox.git] / init / init.c
index ec1bacc83ea80c888245928b10352de241fe73f0..79ab78fc240f23d09e4d1395d7e1518744d5d753 100644 (file)
@@ -627,6 +627,7 @@ static pid_t run(struct init_action *a)
                        messageND(LOG,
                                          "Waiting for enter to start '%s' (pid %d, terminal %s)\n",
                                          cmdpath, getpid(), a->terminal);
+                       fflush(stdout);
                        write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
                        getc(stdin);
                }
@@ -682,8 +683,7 @@ static void run_actions(int action)
        for (a = init_action_list; a; a = tmp) {
                tmp = a->next;
                if (a->action == action) {
-                       if (a->
-                               action & (SYSINIT | WAIT | CTRLALTDEL | SHUTDOWN | RESTART)) {
+                       if (a->action & (SYSINIT | WAIT | CTRLALTDEL | SHUTDOWN | RESTART)) {
                                waitfor(a);
                                delete_init_action(a);
                        } else if (a->action & ONCE) {