aboutsummaryrefslogtreecommitdiff
path: root/initd/config.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2020-05-14 15:42:36 +0200
committerDavid Oberhollenzer <goliath@infraroot.at>2020-05-14 16:09:08 +0200
commit16b22a831c490b8dd1b5f81a4955e6f13f22705d (patch)
treeceee9eca7765788cdf77ff9942475852e6be2c40 /initd/config.c
parent2961e8917f9c39e417e53b5048287f91b611392d (diff)
Cleanup: remove target completion hooks
Simply make the service scripts handle accordingly. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'initd/config.c')
-rw-r--r--initd/config.c23
1 files changed, 0 insertions, 23 deletions
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--;
-}