From 16b22a831c490b8dd1b5f81a4955e6f13f22705d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 14 May 2020 15:42:36 +0200 Subject: Cleanup: remove target completion hooks Simply make the service scripts handle accordingly. Signed-off-by: David Oberhollenzer --- initd/config.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'initd/config.c') diff --git a/initd/config.c b/initd/config.c index 7f9f25c..d994faa 100644 --- a/initd/config.c +++ b/initd/config.c @@ -15,7 +15,6 @@ static size_t queue_count[TGT_MAX]; /* current state */ static size_t queue_idx = 0; static int target = TGT_BOOT; -static size_t singleshot = 0; int config_load(void) { @@ -103,29 +102,7 @@ void config_set_target(int tgt) queue_idx = 0; } -int config_get_current_target(void) -{ - return target; -} - -bool config_is_current_target_complete(void) -{ - return singleshot == 0 && queue_idx >= queue_count[target]; -} - bool config_should_respawn(void) { return target != TGT_REBOOT && target != TGT_SHUTDOWN; } - -void config_singleshot_started(void) -{ - singleshot++; -} - -void config_singleshot_terminated(void) -{ - assert(singleshot > 0); - - singleshot--; -} -- cgit v1.2.3