3 @@ -497,12 +497,11 @@ static void run_actions(int action_type)
4 for (a = init_action_list; a; a = tmp) {
6 if (a->action_type & action_type) {
7 - // Pointless: run() will error out if open of device fails.
8 - ///* a->terminal of "" means "init's console" */
9 - //if (a->terminal[0] && access(a->terminal, R_OK | W_OK)) {
10 - // //message(L_LOG | L_CONSOLE, "Device %s cannot be opened in RW mode", a->terminal /*, strerror(errno)*/);
11 - // delete_init_action(a);
13 + /* a->terminal of "" means "init's console" */
14 + if (a->terminal[0] && access(a->terminal, R_OK | W_OK)) {
15 + //message(L_LOG | L_CONSOLE, "Device %s cannot be opened in RW mode", a->terminal /*, strerror(errno)*/);
16 + delete_init_action(a);
18 if (a->action_type & (SYSINIT | WAIT | CTRLALTDEL | SHUTDOWN | RESTART)) {
20 delete_init_action(a);