diff options
Diffstat (limited to 'src/pies.c')
-rw-r--r-- | src/pies.c | 28 |
1 files changed, 1 insertions, 27 deletions
@@ -995,7 +995,7 @@ _cb_runlevels (enum grecs_callback_command cmd, { if (!is_valid_runlevel (*p)) { - grecs_error (locus, 0, _("not a valid runlevel: %c")); + grecs_error (locus, 0, _("not a valid runlevel: %c"), *p); return 1; } } @@ -2115,31 +2115,6 @@ set_state_file_names (const char *base) qotdfile = mkfilename (statedir, base, ".qotd"); } -static char *try_console[] = { NULL, "/dev/console", "/dev/tty0" }; -char *console_device; - -static void -set_console_dev () -{ - int i; - for (i = 0; i < ARRAY_SIZE (try_console); i++) - { - if (try_console[i]) - { - int fd = open (try_console[i], O_RDONLY|O_NONBLOCK); - - if (fd >= 0) - { - close (fd); - console_device = try_console[i]; - return; - } - } - } - /* provide default */ - console_device = "/dev/null"; -} - int main (int argc, char **argv) { @@ -2306,7 +2281,6 @@ main (int argc, char **argv) if (init_process) { foreground = 1; - set_console_dev (); sysvinit_begin (); } else |