From bfa3617a79292e3569587c65cd218b69bdfd28a2 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 22 Feb 2016 12:31:56 +0200 Subject: Provide a default single-user entry in init mode This complements 6aac230c. The entry is created unless a component for runlevel S already exists. * src/comp.c (component_foreach): New function. * src/pies.h: Likewise. * src/sysvinit.c (inittab_parse): Provide default S entry unless one is already defined. --- src/pies.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pies.h') diff --git a/src/pies.h b/src/pies.h index 939bd4c..d4b5c6a 100644 --- a/src/pies.h +++ b/src/pies.h @@ -406,6 +406,8 @@ int component_is_active (struct component *comp); void component_finish (struct component *comp, grecs_locus_t *locus); struct grecs_keyword *find_component_keyword (const char *ident); +int component_foreach (int (*filter) (struct component *, void *), + void *data); void components_dump_depmap (void); void components_trace (char **argv, enum pies_depmap_direction dir); -- cgit v1.2.1