]> git.pld-linux.org Git - packages/SysVinit.git/blob - sysvinit-paths.patch
- if someone was smart enough to rename initscript to rc.init, update docs too
[packages/SysVinit.git] / sysvinit-paths.patch
1 --- sysvinit-2.86/src/Makefile.orig     2004-06-09 14:47:45.000000000 +0200
2 +++ sysvinit-2.86/src/Makefile  2004-12-26 22:40:47.622737944 +0100
3 @@ -9,7 +9,8 @@
4  #
5  
6  CC     = gcc
7 -CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE
8 +OPTIMIZE = -O2 -fomit-frame-pointer
9 +CFLAGS = -Wall $(OPTIMIZE) -D_GNU_SOURCE
10  LDFLAGS        = -s
11  STATIC =
12  
13 @@ -26,7 +27,7 @@
14  ifeq ($(DISTRO),)
15  BIN    += mountpoint
16  SBIN   += sulogin bootlogd
17 -USRBIN += utmpdump wall
18 +USRBIN += utmpx-dump wall
19  MAN1   += mountpoint.1 wall.1
20  MAN8   += sulogin.8 bootlogd.8
21  endif
22 @@ -71,7 +72,7 @@
23  mountpoint:    mountpoint.o
24                 $(CC) $(LDFLAGS) -o $@ mountpoint.o
25  
26 -utmpdump:      utmpdump.o
27 +utmpx-dump:    utmpdump.o
28                 $(CC) $(LDFLAGS) -o $@ utmpdump.o
29  
30  runlevel:      runlevel.o
31 --- sysvinit-2.86/src/paths.h.orig      2004-06-09 14:47:45.000000000 +0200
32 +++ sysvinit-2.86/src/paths.h   2004-12-26 22:41:21.122645184 +0100
33 @@ -25,7 +25,7 @@
34  #define SDPID          "/var/run/shutdown.pid" /* PID of shutdown program */
35  #define SHELL          "/bin/sh"               /* Default shell */
36  #define SULOGIN                "/sbin/sulogin"         /* Sulogin */
37 -#define INITSCRIPT     "/etc/initscript"       /* Initscript. */
38 +#define INITSCRIPT     "/etc/rc.d/rc.init"     /* Initscript. */
39  #define PWRSTAT                "/etc/powerstatus"      /* COMPAT: SIGPWR reason (OK/BAD) */
40  
41  #if 0
42 --- sysvinit-2.85.orig/src/utmpdump.c   Tue Sep 12 23:14:24 2000
43 +++ sysvinit-2.85/src/utmpdump.c        Thu Apr 24 12:05:06 2003
44 @@ -265,14 +265,14 @@
45         }
46  
47         if (optind < argc) {
48 -               fprintf(stderr, "Utmp %sdump of %s\n", reverse ? "un" : "", argv[optind]);
49 +               fprintf(stderr, "Utmpx %sdump of %s\n", reverse ? "un" : "", argv[optind]);
50                 if ((fp = fopen(argv[optind], "r")) == NULL) {
51                         perror("Unable to open file");
52                         exit(1);
53                 }
54         }
55         else {
56 -               fprintf(stderr, "Utmp %sdump of stdin\n", reverse ? "un" : "");
57 +               fprintf(stderr, "Utmpx %sdump of stdin\n", reverse ? "un" : "");
58                 fp = stdin;
59         }
60  
61 --- sysvinit-2.86/doc/Propaganda~       1996-01-02 20:20:54.000000000 +0200
62 +++ sysvinit-2.86/doc/Propaganda        2009-11-23 00:55:49.324465562 +0200
63 @@ -46,7 +46,7 @@
64    /var/run/utmp (it's also shown on the command line if you do a "ps").
65  - unreckognized options are silently ignored (such as the infamous
66    "ro" - mount root file system read only).
67 -- if the file /etc/initscript is present it will be used to launch
68 +- if the file /etc/rc.d/rc.init is present it will be used to launch
69    all programs that init starts (so that you can set a generic
70    umask, ulimit eg for ALL processes - see initscript.sample).
71  - A "sulogin" program added that always asks for the root
72 --- sysvinit-2.86/man/init.8~   2009-11-23 00:51:14.000000000 +0200
73 +++ sysvinit-2.86/man/init.8    2009-11-23 00:57:22.862750944 +0200
74 @@ -76,7 +76,7 @@
75  are processed.
76  .PP
77  When starting a new process, \fBinit\fP first checks whether the file
78 -\fI/etc/sysconfig/initscript\fP exists. If it does, it uses this script to
79 +\fI/etc/rc.d/rc.init\fP exists. If it does, it uses this script to
80  start the process.
81  .PP
82  Each time a child terminates, \fBinit\fP records the fact and the reason
83 @@ -240,7 +240,7 @@
84  .SH FILES
85  .nf
86  /etc/inittab
87 -/etc/sysconfig/initscript
88 +/etc/rc.d/rc.init
89  /dev/console
90  /var/run/utmpx
91  /var/log/wtmpx
92 --- sysvinit-2.86/man/initscript.5~     2009-11-23 00:51:14.000000000 +0200
93 +++ sysvinit-2.86/man/initscript.5      2009-11-23 00:58:47.190785642 +0200
94 @@ -2,9 +2,9 @@
95  .SH NAME
96  initscript \- script that executes inittab commands.
97  .SH SYNOPSIS
98 -/bin/sh /etc/sysconfig/initscript id runlevels action process
99 +/bin/sh /etc/rc.d/rc.init id runlevels action process
100  .SH DESCRIPTION
101 -When the shell script \fI/etc/sysconfig/initscript\fP is present, \fBinit\fP
102 +When the shell script \fI/etc/rc.d/rc.init\fP is present, \fBinit\fP
103  will use it to execute the commands from \fIinittab\fP.
104  This script can be used to set things like \fBulimit\fP and
105  \fBumask\fP default values for every process.
106 @@ -20,7 +20,7 @@
107  # initscript   Executed by init(8) for every program it
108  #              wants to spawn like this:
109  #
110 -# /bin/sh /etc/sysconfig/initscript <id> <level> <action> <process>
111 +# /bin/sh /etc/rc.d/rc.init <id> <level> <action> <process>
112  #
113  
114    # Set umask to safe level, and enable core dumps.
115 @@ -48,7 +48,7 @@
116  .RE
117  .SH FILES
118  /etc/inittab,
119 -/etc/sysconfig/initscript.
120 +/etc/rc.d/rc.init.
121  .SH AUTHOR
122  Miquel van Smoorenburg ,<miquels@cistron.nl>
123  .SH "SEE ALSO"
124 --- sysvinit-2.86/src/initscript.sample~        1997-11-26 15:06:33.000000000 +0200
125 +++ sysvinit-2.86/src/initscript.sample 2009-11-23 01:00:22.490804927 +0200
126 @@ -1,14 +1,14 @@
127  #
128 -# initscript   If this script is intalled as /etc/initscript,
129 +# initscript   If this script is intalled as /etc/rc.d/rc.init,
130  #              it is executed by init(8) for every program it
131  #              wants to spawn like this:
132  #
133 -#              /bin/sh /etc/initscript <id> <level> <action> <process>
134 +#              /bin/sh /etc/rc.d/rc.init <id> <level> <action> <process>
135  #
136  #              It can be used to set the default umask and ulimit
137  #              of all processes. By default this script is installed
138  #              as /etc/initscript.sample, so to enable it you must
139 -#              rename this script first to /etc/initscript.
140 +#              rename this script first to /etc/rc.d/rc.init.
141  #
142  # Version:     @(#)initscript 1.10 10-Dec-1995 MvS.
143  #
This page took 0.088246 seconds and 3 git commands to generate.