INIT_CMD_CHANGECONS was introduced. Based on feedback and patch
from Bill Nottingham.
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@8
456724a4-4300-0410-8514-
c89748c515a2
+sysvinit (2.88dsf) UNRELEASED; urgency=low
+
+ * Revert change from Fedora/RedHat where the now obsolete command
+ INIT_CMD_CHANGECONS was introduced. Based on feedback and patch
+ from Bill Nottingham.
+
+ -- Petter Reinholdtsen <pere@hungry.com> Sun, 12 Jul 2009 19:58:10 +0200
+
sysvinit (2.87dsf) world; urgency=low
* Fix typos and do minor updates in the manual pages.
sysvinit (2.87dsf) world; urgency=low
* Fix typos and do minor updates in the manual pages.
char *argv0; /* First arguments; show up in ps listing */
int maxproclen; /* Maximal length of argv[0] with \0 */
struct utmp utproto; /* Only used for sizeof(utproto.ut_id) */
char *argv0; /* First arguments; show up in ps listing */
int maxproclen; /* Maximal length of argv[0] with \0 */
struct utmp utproto; /* Only used for sizeof(utproto.ut_id) */
-char *user_console = NULL; /* User console device */
char *console_dev; /* Console device. */
int pipe_fd = -1; /* /dev/initctl */
int did_boot = 0; /* Did we already do BOOT* stuff? */
char *console_dev; /* Console device. */
int pipe_fd = -1; /* /dev/initctl */
int did_boot = 0; /* Did we already do BOOT* stuff? */
int tried_vtmaster = 0;
char *s;
int tried_vtmaster = 0;
char *s;
- if (user_console) {
- console_dev = user_console;
- } else if ((s = getenv("CONSOLE")) != NULL)
+ if ((s = getenv("CONSOLE")) != NULL)
console_dev = s;
else {
console_dev = CONSOLE;
console_dev = s;
else {
console_dev = CONSOLE;
case INIT_CMD_SETENV:
initcmd_setenv(request.i.data, sizeof(request.i.data));
break;
case INIT_CMD_SETENV:
initcmd_setenv(request.i.data, sizeof(request.i.data));
break;
- case INIT_CMD_CHANGECONS:
- if (user_console) {
- free(user_console);
- user_console = NULL;
- }
- if (!request.i.bsd.reserved[0])
- user_console = NULL;
- else
- user_console = strdup(request.i.bsd.reserved);
- console_init();
- quit = 1;
- break;
default:
initlog(L_VB, "got unimplemented initrequest.");
break;
default:
initlog(L_VB, "got unimplemented initrequest.");
break;
#define INIT_CMD_SETENV 6
#define INIT_CMD_UNSETENV 7
#define INIT_CMD_SETENV 6
#define INIT_CMD_UNSETENV 7
-#define INIT_CMD_CHANGECONS 12345
-
#ifdef MAXHOSTNAMELEN
# define INITRQ_HLEN MAXHOSTNAMELEN
#else
#ifdef MAXHOSTNAMELEN
# define INITRQ_HLEN MAXHOSTNAMELEN
#else