aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-03-02 12:05:14 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-03-02 12:05:14 +0200
commit801656d6ae9b6c5cb199b2e53001ecaac41db4ae (patch)
tree79f0a21df11ad1941636d1be337cd41d5efb00f4 /src
parent4b214cf7c9c76532dc17cc7b1be844473b80b885 (diff)
downloadpies-801656d6ae9b6c5cb199b2e53001ecaac41db4ae.tar.gz
pies-801656d6ae9b6c5cb199b2e53001ecaac41db4ae.tar.bz2
Configurable pathname of the emergency shell
* configure.ac (EMERGENCY_SHELL): New arg_var. * src/Makefile.am (AM_CPPFLAGS): Define EMERGENCY_SHELL. * src/sysvinit.c (emergency_shell): Initialize with the value of EMERGENCY_SHELL.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
-rw-r--r--src/sysvinit.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a637077..6515804 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -84,7 +84,8 @@ AM_CPPFLAGS=\
84 -DDEFAULT_INCLUDE_DIR=\"$(pkgdatadir)/include\"\ 84 -DDEFAULT_INCLUDE_DIR=\"$(pkgdatadir)/include\"\
85 -DDEFAULT_STATE_DIR=\"$(pkgstatedir)\"\ 85 -DDEFAULT_STATE_DIR=\"$(pkgstatedir)\"\
86 -DDEFAULT_PIES_CONTROL_URL='"$(DEFAULT_PIES_CONTROL_URL)"'\ 86 -DDEFAULT_PIES_CONTROL_URL='"$(DEFAULT_PIES_CONTROL_URL)"'\
87 -DDEFAULT_INIT_CONTROL_URL='"$(DEFAULT_INIT_CONTROL_URL)"' 87 -DDEFAULT_INIT_CONTROL_URL='"$(DEFAULT_INIT_CONTROL_URL)"'\
88 -DEMERGENCY_SHELL='"$(EMERGENCY_SHELL)"'
88 89
89EXTRA_SCRIPTS = inetd 90EXTRA_SCRIPTS = inetd
90sbin_SCRIPTS = @INETD@ 91sbin_SCRIPTS = @INETD@
diff --git a/src/sysvinit.c b/src/sysvinit.c
index f2f4403..a150058 100644
--- a/src/sysvinit.c
+++ b/src/sysvinit.c
@@ -60,7 +60,7 @@ int prevlevel = 'N';
60 60
61int initdefault; /* Default runlevel */ 61int initdefault; /* Default runlevel */
62int dfl_level; 62int dfl_level;
63char *emergency_shell = "/sbin/sulogin"; 63char *emergency_shell = EMERGENCY_SHELL;
64int emergency; 64int emergency;
65 65
66static int inittrans (void); 66static int inittrans (void);

Return to:

Send suggestions and report system problems to the System administrator.