Changeset 5af9ab4


Ignore:
Timestamp:
03/09/2019 07:18:52 AM (6 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
90f5b6d
Parents:
d39252b
Message:

In the systemd book, the network card is designed as

"<network-device-name>", not "eth0".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    rd39252b r5af9ab4  
    696696    <xsl:param name="netstring" select="''"/>
    697697    <!-- We suppose that book example has the following values:
    698          - interface: eth0
     698         - interface: <network-device-name>
    699699         - ip: 192.168.0.2
    700700         - gateway: 192.168.0.1
     
    704704         and gateway comes before DNS. Change below if book changes -->
    705705    <xsl:choose>
    706       <xsl:when test="contains($netstring,'eth0')">
    707         <xsl:call-template name="outputsysdnet">
    708           <xsl:with-param name="netstring"
    709                           select="substring-before($netstring,'eth0')"/>
     706      <xsl:when test="contains($netstring,'&lt;network-device-name&gt;')">
     707        <xsl:call-template name="outputsysdnet">
     708          <xsl:with-param name="netstring"
     709                          select="substring-before($netstring,'&lt;network-device-name&gt;')"/>
    710710        </xsl:call-template>
    711711        <xsl:value-of select="$interface"/>
    712712        <xsl:call-template name="outputsysdnet">
    713713          <xsl:with-param name="netstring"
    714                           select="substring-after($netstring,'eth0')"/>
     714                          select="substring-after($netstring,'&lt;network-device-name&gt;')"/>
    715715        </xsl:call-template>
    716716      </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.