~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/startpar/makeboot.h

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen
  • Date: 2008-08-12 16:07:50 UTC
  • Revision ID: james.westby@ubuntu.com-20080812160750-65gpyv74vh4qr69w
Tags: 2.86.ds1-61
* Fix typo in rcS(5), proberly->properly (Closes: #484233).  Thanks to
  Julien Danjou for noticing.
* Fix typo in rcS(5), maually->manually (Closes: #493680).  Thanks to
  Xr for noticing.
* Modify runlevel detection code in invoke-rc.d to notice the
  difference between runlevels 0 and 6, and the boot runlevel, to
  make it possible to use invoke-rc.d during boot (Closes: 384509).
* Make sure to call restorecon after mounting tmpfs file systems, to
  set SELinux permissions (Closes: #493679).  Patch from Russell
  Coker.
* Move responsibility of stopping the splash screen process from
  individual init.d scripts to init.d/rc.  This make sure the
  progress calculation reflect reality, and that the splash screen
  is taken down in runlevel 1 (Closes: #431560) and that it stop
  before gdm and kdm (Closes: #422922, #489734).
* Skip error message from checkfs.sh when / is read-only.  Patch
  from Mirek Slugen (Closes: #492214).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 */
 
3
 
 
4
enum {
 
5
        T_READY, T_RUNNING, T_FINISHED
 
6
};
 
7
 
 
8
/* target nodes */
 
9
struct makenode {
 
10
        char *name;
 
11
        int num_deps;
 
12
        struct makelist *depend;
 
13
        int num_sels;
 
14
        struct makelist *select;
 
15
        int status;
 
16
        struct makenode *next;
 
17
        int interactive;
 
18
        int importance;
 
19
};
 
20
 
 
21
/* dependency and selection list nodes */
 
22
struct makelist {
 
23
        struct makenode *node;
 
24
        struct makelist *next;
 
25
};
 
26
 
 
27
extern int tree_entries;
 
28
extern struct makenode *tree_list;
 
29
 
 
30
extern void parse_makefile(const char *path);
 
31
extern void check_run_files(const char *action, const char *prev, const char *run);
 
32
extern struct makenode *pickup_task(void);
 
33
extern void finish_task(struct makenode *n);
 
34
extern void *xcalloc(size_t nmemb, size_t size);
 
35
extern void print_run_result(int *resvec, struct makenode **nodevec, const char *action);
 
36
 
 
37
/* SUSE and Debian */
 
38
#define INITDDIR "/etc/init.d"
 
39
 
 
40
#if 0 /* SUSE */
 
41
#  define RCDBASEDIR "/etc/init.d"
 
42
#else /* Debian */
 
43
#  define RCDBASEDIR "/etc"
 
44
#endif