From d28075a0fe83715db91cf20cc7c6c1d2ba7870ea Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Tue, 7 Aug 2001 12:57:10 +0000 Subject: Bug 123: change patch to sed git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@920 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/sysvinit-inst.xml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'chapter06') diff --git a/chapter06/sysvinit-inst.xml b/chapter06/sysvinit-inst.xml index ee747370b..a772e7ad3 100644 --- a/chapter06/sysvinit-inst.xml +++ b/chapter06/sysvinit-inst.xml @@ -6,18 +6,16 @@ the system) the init program is going to send the TERM and KILL signals to all the processes that init started. But init prints a message to the screen saying "sending all processes the TERM signal" and the same for the KILL signal. This implies that init sends this signal to all the currently -running processes, which isn't the case. To avoid this confusion a user can -apply the sysvinit patch found on the LFS FTP site to sysvinit that changes -the sentence in the shutdown.c file and have it print "sending all +running processes, which isn't the case. To avoid this confusion, we +change the init.c file so that the sentence reads "sending all processes started by init the TERM signal". -Apply the patch by running the following command: - -patch -Np1 -i ../sysvinit-&sysvinit-version;.patch - Install Sysvinit by running the following commands: -make -C src && +mv src/init.c init.c.temp && +sed 's/\(.*\)\(Sending processes\)\(.*\) \ + /\1\2 started by init\3/' init.c.temp > src/init.c && +make -C src && make -C src install -- cgit v1.2.3-54-g00ecf