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
7 -CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE
8 +OPTIMIZE = -O2 -fomit-frame-pointer
9 +CFLAGS = -Wall $(OPTIMIZE) -D_GNU_SOURCE
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
23 mountpoint: mountpoint.o
24 $(CC) $(LDFLAGS) -o $@ mountpoint.o
27 +utmpx-dump: utmpdump.o
28 $(CC) $(LDFLAGS) -o $@ utmpdump.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
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) */
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
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");
56 - fprintf(stderr, "Utmp %sdump of stdin\n", reverse ? "un" : "");
57 + fprintf(stderr, "Utmpx %sdump of stdin\n", reverse ? "un" : "");
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
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
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
82 Each time a child terminates, \fBinit\fP records the fact and the reason
87 -/etc/sysconfig/initscript
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
96 initscript \- script that executes inittab commands.
98 -/bin/sh /etc/sysconfig/initscript id runlevels action process
99 +/bin/sh /etc/rc.d/rc.init id runlevels action process
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.
107 # initscript Executed by init(8) for every program it
108 # wants to spawn like this:
110 -# /bin/sh /etc/sysconfig/initscript <id> <level> <action> <process>
111 +# /bin/sh /etc/rc.d/rc.init <id> <level> <action> <process>
114 # Set umask to safe level, and enable core dumps.
119 -/etc/sysconfig/initscript.
122 Miquel van Smoorenburg ,<miquels@cistron.nl>
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
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:
133 -# /bin/sh /etc/initscript <id> <level> <action> <process>
134 +# /bin/sh /etc/rc.d/rc.init <id> <level> <action> <process>
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.
142 # Version: @(#)initscript 1.10 10-Dec-1995 MvS.