]> git.pld-linux.org Git - packages/busybox.git/blobdiff - busybox-logconsole.patch
dynamic configuration needs libtirpc-devel
[packages/busybox.git] / busybox-logconsole.patch
index bf8167ff7640430f54098ce5765eb33550e91f30..cb18d0ae2d71c8e091e3027660153ce51eb68125 100644 (file)
@@ -1,33 +1,21 @@
-diff -urN busybox-0.60.1/init.c busybox-0.60.1.new/init.c
---- busybox-0.60.5/init.c.orig  Tue Oct 22 21:15:43 2002
-+++ busybox-0.60.5/init.c       Sun Oct 27 12:19:38 2002
-@@ -160,7 +160,7 @@
- static char termType[32]   = "TERM=linux";
- static char console[32]    = _PATH_CONSOLE;
- #ifndef BB_SYSLOGD
--static char *log           = VC_5;
-+static char *log           = VC_12;
- #endif
- static sig_atomic_t got_cont = 0;
- static const int LOG = 0x1;
-diff -urN busybox-0.60.1/libbb/libbb.h busybox-0.60.1.new/libbb/libbb.h
---- busybox-0.60.1/libbb/libbb.h       Fri Aug 24 00:14:31 2001
-+++ busybox-0.60.1.new/libbb/libbb.h   Tue Aug 28 22:57:57 2001
-@@ -301,7 +301,7 @@
- # define VC_2 "/dev/vc/2"
- # define VC_3 "/dev/vc/3"
- # define VC_4 "/dev/vc/4"
--# define VC_5 "/dev/vc/5"
-+# define VC_12 "/dev/vc/12"
- # define SC_0 "/dev/tts/0"
- # define SC_1 "/dev/tts/1"
- # define VC_FORMAT "/dev/vc/%d"
-@@ -312,7 +312,7 @@
- # define VC_2 "/dev/tty2"
+--- busybox-1.29.3/include/libbb.h~    2018-12-16 11:20:56.000000000 +0100
++++ busybox-1.29.3/include/libbb.h     2018-12-16 11:22:32.895687694 +0100
+@@ -2095,6 +2095,7 @@ extern const char bb_default_login_shell
  # define VC_3 "/dev/tty3"
  # define VC_4 "/dev/tty4"
--# define VC_5 "/dev/tty5"
+ # define VC_5 "/dev/tty5"
 +# define VC_12 "/dev/tty12"
- # define SC_0 "/dev/ttyS0"
- # define SC_1 "/dev/ttyS1"
  # define VC_FORMAT "/dev/tty%d"
+ #elif ENABLE_FEATURE_DEVFS
+ /*Linux, obsolete devfs names */
+--- busybox-1.29.3/init/init.c~        2018-07-02 13:23:06.000000000 +0200
++++ busybox-1.29.3/init/init.c 2018-12-16 11:21:50.307764617 +0100
+@@ -221,7 +221,7 @@ struct globals {
+ #define G (*(struct globals*)bb_common_bufsiz1)
+ #define INIT_G() do { \
+       setup_common_bufsiz(); \
+-      IF_NOT_FEATURE_INIT_SYSLOG(G.log_console = VC_5;) \
++      IF_NOT_FEATURE_INIT_SYSLOG(G.log_console = VC_12;) \
+ } while (0)
+ enum {
This page took 0.048001 seconds and 4 git commands to generate.