root:/sources# tar zxf sysvinit-2.86.tar.gz root:/sources# cd sysvinit-2.86 root:/sources/sysvinit-2.86# sed -i 's@Sending processes@& started by init@g' \ > src/init.c root:/sources/sysvinit-2.86# root:/sources/sysvinit-2.86# make -C src clobber make: Entering directory `/sources/sysvinit-2.86/src' rm -f *.o *.bak rm -f mountpoint init halt shutdown runlevel killall5 sulogin bootlogd last mesg utmpdump wall make: Leaving directory `/sources/sysvinit-2.86/src' root:/sources/sysvinit-2.86# root:/sources/sysvinit-2.86# make -C src make: Entering directory `/sources/sysvinit-2.86/src' gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o mountpoint.o mountpoint.c gcc -s -o mountpoint mountpoint.o gcc -c -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE init.c init.c: In function 're_exec': init.c:1887: warning: missing sentinel in function call gcc -c -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -DINIT_MAIN utmp.c -o init_utmp.o gcc -s -o init init.o init_utmp.o gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o halt.o halt.c gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o ifdown.o ifdown.c gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o hddown.o hddown.c gcc -c -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE utmp.c gcc -s -o halt halt.o ifdown.o hddown.o utmp.o gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o dowall.o dowall.c gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o shutdown.o shutdown.c gcc -s -o shutdown dowall.o shutdown.o utmp.o gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o runlevel.o runlevel.c gcc -s -o runlevel runlevel.o gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -s killall5.c -o killall5 gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o sulogin.o sulogin.c gcc -s -o sulogin sulogin.o -lcrypt gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o bootlogd.o bootlogd.c bootlogd.c: In function 'main': bootlogd.c:612: warning: pointer targets in passing argument 2 of 'writelog' differ in signedness gcc -s -o bootlogd bootlogd.o -lutil gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o last.o last.c gcc -s -o last last.o gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o mesg.o mesg.c gcc -s -o mesg mesg.o gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o utmpdump.o utmpdump.c gcc -s -o utmpdump utmpdump.o gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o wall.o wall.c wall.c: In function 'main': wall.c:105: warning: format '%d' expects type 'int', but argument 5 has type 'size_t' gcc -s -o wall dowall.o wall.o make: Leaving directory `/sources/sysvinit-2.86/src' root:/sources/sysvinit-2.86# root:/sources/sysvinit-2.86# make -C src install make: Entering directory `/sources/sysvinit-2.86/src' for i in mountpoint; do \ install -o root -g root -m 755 $i /bin/; \ done for i in init halt shutdown runlevel killall5 sulogin bootlogd; do \ install -o root -g root -m 755 $i /sbin/; \ done for i in last mesg utmpdump wall; do \ install -o root -g root -m 755 $i /usr/bin/; \ done # install -o root -g root -m 755 etc/initscript.sample /etc/ ln -sf halt /sbin/reboot ln -sf halt /sbin/poweroff ln -sf init /sbin/telinit ln -sf ../sbin/killall5 /bin/pidof if [ ! -f /usr/bin/lastb ]; then \ ln -sf last /usr/bin/lastb; \ fi install -o root -g root -m 644 initreq.h /usr/include/ for i in last.1 lastb.1 mesg.1 mountpoint.1 wall.1; do \ install -o root -g root -m 644 ../man/$i /usr/share/man/man1/; \ done for i in initscript.5 inittab.5; do \ install -o root -g root -m 644 ../man/$i /usr/share/man/man5/; \ done for i in halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8 shutdown.8 telinit.8 sulogin.8 bootlogd.8; do \ install -o root -g root -m 644 ../man/$i /usr/share/man/man8/; \ done # # This part is skipped on Debian systems, the # debian.preinst script takes care of it. make: Leaving directory `/sources/sysvinit-2.86/src' root:/sources/sysvinit-2.86# root:/sources/sysvinit-2.86# cat > /etc/inittab << "EOF" > # Begin /etc/inittab > > id:3:initdefault: > > si::sysinit:/etc/rc.d/init.d/rc sysinit > > l0:0:wait:/etc/rc.d/init.d/rc 0 > l1:S1:wait:/etc/rc.d/init.d/rc 1 > l2:2:wait:/etc/rc.d/init.d/rc 2 > l3:3:wait:/etc/rc.d/init.d/rc 3 > l4:4:wait:/etc/rc.d/init.d/rc 4 > l5:5:wait:/etc/rc.d/init.d/rc 5 > l6:6:wait:/etc/rc.d/init.d/rc 6 > > ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now > > su:S016:once:/sbin/sulogin > > # Remove this section if you System only > # has a console port > 1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600 > 2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600 > 3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600 > 4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600 > 5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600 > 6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600 > > # Uncomment this section if your system has a console > # port > #c0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100 > > # End /etc/inittab > EOF root:/sources/sysvinit-2.86#