aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-02-15 22:24:04 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-02-15 22:24:04 +0200
commit27366c475aa4955f296f169cf9acd33e36b9d7b3 (patch)
tree3e09f2ae80c423ccd2a0a2929852be3560cb1d2b /src/pies.h
parent0a5eb4f65a20d37f2051dce8816485dd219fb735 (diff)
downloadpies-27366c475aa4955f296f169cf9acd33e36b9d7b3.tar.gz
pies-27366c475aa4955f296f169cf9acd33e36b9d7b3.tar.bz2
Implement emergency shell.
* src/pies.c (main): Move init-specific command line handling to sysvinit_parse_argv. * src/pies.h (dfl_level): Remove extern. (sysvinit_parse_argv): New proto. * src/sysvinit.c (sysvinit_parse_argv): New function. (sysvinit_begin): Start emergency shell, if requested.
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pies.h b/src/pies.h
index bcce32a..4a6160f 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -288,13 +288,12 @@ extern char **mailer_argv;
extern size_t default_max_rate;
extern char *qotdfile;
extern int init_process;
extern char *console_device;
extern int initdefault;
-extern int dfl_level;
extern size_t pies_master_argc;
extern char **pies_master_argv;
extern char *default_control_url[2];
enum config_syntax_type
@@ -520,12 +519,13 @@ int sysvinit_sigtrans (int sig, int *pact);
void sysvinit_runlevel_setup (int mask);
void sysvinit_sysdep_begin (void);
void sysvinit_power (void);
void sysvinit_report (struct json_value *obj);
int sysvinit_set_runlevel (int newlevel);
+void sysvinit_parse_argv (int argc, char **argv);
extern char *sysvinit_environ_hint[];
extern char *init_fifo;
#ifndef INIT_FIFO
# define INIT_FIFO "/dev/initctl"

Return to:

Send suggestions and report system problems to the System administrator.