diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-03-02 12:05:14 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-03-02 12:05:14 +0200 |
commit | 801656d6ae9b6c5cb199b2e53001ecaac41db4ae (patch) | |
tree | 79f0a21df11ad1941636d1be337cd41d5efb00f4 /src | |
parent | 4b214cf7c9c76532dc17cc7b1be844473b80b885 (diff) | |
download | pies-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.am | 3 | ||||
-rw-r--r-- | src/sysvinit.c | 2 |
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 | ||
89 | EXTRA_SCRIPTS = inetd | 90 | EXTRA_SCRIPTS = inetd |
90 | sbin_SCRIPTS = @INETD@ | 91 | 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'; | |||
60 | 60 | ||
61 | int initdefault; /* Default runlevel */ | 61 | int initdefault; /* Default runlevel */ |
62 | int dfl_level; | 62 | int dfl_level; |
63 | char *emergency_shell = "/sbin/sulogin"; | 63 | char *emergency_shell = EMERGENCY_SHELL; |
64 | int emergency; | 64 | int emergency; |
65 | 65 | ||
66 | static int inittrans (void); | 66 | static int inittrans (void); |