summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2016-03-02 10:05:14 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-03-02 10:05:14 (GMT)
commit801656d6ae9b6c5cb199b2e53001ecaac41db4ae (patch) (side-by-side diff)
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') (more/less context) (ignore whitespace changes)
-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=\
-DDEFAULT_INCLUDE_DIR=\"$(pkgdatadir)/include\"\
-DDEFAULT_STATE_DIR=\"$(pkgstatedir)\"\
-DDEFAULT_PIES_CONTROL_URL='"$(DEFAULT_PIES_CONTROL_URL)"'\
- -DDEFAULT_INIT_CONTROL_URL='"$(DEFAULT_INIT_CONTROL_URL)"'
+ -DDEFAULT_INIT_CONTROL_URL='"$(DEFAULT_INIT_CONTROL_URL)"'\
+ -DEMERGENCY_SHELL='"$(EMERGENCY_SHELL)"'
EXTRA_SCRIPTS = inetd
sbin_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';
int initdefault; /* Default runlevel */
int dfl_level;
-char *emergency_shell = "/sbin/sulogin";
+char *emergency_shell = EMERGENCY_SHELL;
int emergency;
static int inittrans (void);

Return to:

Send suggestions and report system problems to the System administrator.