[jhalfs] 03/03: Adapt to recent modification of ip in SysV /etc/hosts

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Sun, 23 Feb 2025 14:44:49 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit 01e3fe7559048ba2705d2d40105bc310f8e07b7b
Author: Pierre Labastie <[email protected]>
AuthorDate: Sun Feb 23 15:41:56 2025 +0100

    Adapt to recent modification of ip in SysV /etc/hosts
    
    The replaceable ip in SysV /etc/hosts has been changed from
    192.168.1.1 to 192.168.1.2 to be compatible with interface
    settings. Add this case to the replaceable possibilities.
---
 LFS/lfs.xsl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl
index 4a6b6f4..2b1d884 100644
--- a/LFS/lfs.xsl
+++ b/LFS/lfs.xsl
@@ -627,9 +627,14 @@ unset OLD_PKGDIR
       <xsl:when test="contains(string(.),'secondary')">
         <xsl:value-of select="$nameserver2"/>
       </xsl:when>
+      <!-- Old sysV books have 192.168.1.1 as ip in /etc/hosts,
+      new ones have 192.168.1.2. -->
       <xsl:when test="contains(string(.),'192.168.1.1')">
         <xsl:value-of select="$ip"/>
       </xsl:when>
+      <xsl:when test="contains(string(.),'192.168.1.2')">
+        <xsl:value-of select="$ip"/>
+      </xsl:when>
       <xsl:when test="contains(string(.),'192.168.0.2')">
         <xsl:value-of select="$ip"/>
       </xsl:when>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page