From e0d18a70caed39d29a50317d1a857ad771117dad Mon Sep 17 00:00:00 2001 From: Thomas Balu Walter Date: Tue, 13 Mar 2001 17:19:45 +0000 Subject: [PATCH] Changed all "rm file && ln -s dest file" into "ln -sf file". git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@312 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter06/bzip2-inst.xml | 3 +-- chapter06/config-glibc.xml | 3 +-- chapter06/gzip-inst.xml | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index af167ff82..6fa7a953e 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -122,6 +122,11 @@ Chapter 6: Merged the different sulogin lines from the inittab file into one line. + +Chapter 6: Changed all "rm file && ln -s dest file" into +"ln -sf file" (in glibc, bzip2 and gzip installation). + + Chapter 7: Fixed the delays in the killproc function in the functions script. Now after kill, first check PIDs, then sleep 2 if needed. More diff --git a/chapter06/bzip2-inst.xml b/chapter06/bzip2-inst.xml index 580643476..a2977a367 100644 --- a/chapter06/bzip2-inst.xml +++ b/chapter06/bzip2-inst.xml @@ -16,8 +16,7 @@ Install Bzip2 by running the following commands: cp -a libbz2.so* libbz2.a /lib && rm /usr/lib/libbz2.a && cd /bin && - rm bunzip2 && ln -s bzip2 bunzip2 - && + ln -sf bzip2 bunzip2 && rm bzcat && ln -s bzip2 bzcat && cd /usr/share/man/man1 && diff --git a/chapter06/config-glibc.xml b/chapter06/config-glibc.xml index 5272c536e..4377c40e9 100644 --- a/chapter06/config-glibc.xml +++ b/chapter06/config-glibc.xml @@ -52,8 +52,7 @@ by running:
cd /etc && - rm localtime && - ln -s ../usr/share/zoneinfo/<tzselect's output> + ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime
diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml index 9eb3acdeb..32147581c 100644 --- a/chapter06/gzip-inst.xml +++ b/chapter06/gzip-inst.xml @@ -12,9 +12,9 @@ Install Gzip by running the following commands: make install && cd /usr/bin && mv gzip /bin && - rm gunzip /bin/gunzip && + rm gunzip && cd /bin && - ln -s gzip gunzip && + ln -sf gzip gunzip && ln -s gzip compress && ln -s gunzip uncompress