From 9cb7be1a3267744ad64b2422e2be4eeb1763d1d2 Mon Sep 17 00:00:00 2001 From: Sergiy Kibrik Date: Wed, 19 Aug 2015 19:57:44 +0300 Subject: [PATCH] inittab: always proceed to next state If no S or K rc scripts provided we still should be able to go on to next state, or we won't boot properly and would not be able to reboot/shutdown later. Signed-off-by: Sergiy Kibrik --- inittab.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inittab.c b/inittab.c index eb402f8..f8f0218 100644 --- a/inittab.c +++ b/inittab.c @@ -151,7 +151,10 @@ static void runrc(struct init_action *a) ERROR("valid format is rcS \n"); return; } - rcS(a->argv[1], a->argv[2], rcdone); + + /* proceed even if no init or shutdown scripts run */ + if (rcS(a->argv[1], a->argv[2], rcdone)) + rcdone(NULL); } static void askfirst(struct init_action *a) -- 2.11.0