In the systemd book, the network card is designed as
"<network-device-name>", not "eth0".
This commit is contained in:
parent
d39252b7ca
commit
5af9ab4b8c
1 changed files with 4 additions and 4 deletions
|
@ -695,7 +695,7 @@ unset OLD_PKGDIR
|
||||||
<xsl:template name="outputsysdnet">
|
<xsl:template name="outputsysdnet">
|
||||||
<xsl:param name="netstring" select="''"/>
|
<xsl:param name="netstring" select="''"/>
|
||||||
<!-- We suppose that book example has the following values:
|
<!-- We suppose that book example has the following values:
|
||||||
- interface: eth0
|
- interface: <network-device-name>
|
||||||
- ip: 192.168.0.2
|
- ip: 192.168.0.2
|
||||||
- gateway: 192.168.0.1
|
- gateway: 192.168.0.1
|
||||||
- prefix: 24
|
- prefix: 24
|
||||||
|
@ -703,15 +703,15 @@ unset OLD_PKGDIR
|
||||||
- Domain: <Your Domain Name>
|
- Domain: <Your Domain Name>
|
||||||
and gateway comes before DNS. Change below if book changes -->
|
and gateway comes before DNS. Change below if book changes -->
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="contains($netstring,'eth0')">
|
<xsl:when test="contains($netstring,'<network-device-name>')">
|
||||||
<xsl:call-template name="outputsysdnet">
|
<xsl:call-template name="outputsysdnet">
|
||||||
<xsl:with-param name="netstring"
|
<xsl:with-param name="netstring"
|
||||||
select="substring-before($netstring,'eth0')"/>
|
select="substring-before($netstring,'<network-device-name>')"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
<xsl:value-of select="$interface"/>
|
<xsl:value-of select="$interface"/>
|
||||||
<xsl:call-template name="outputsysdnet">
|
<xsl:call-template name="outputsysdnet">
|
||||||
<xsl:with-param name="netstring"
|
<xsl:with-param name="netstring"
|
||||||
select="substring-after($netstring,'eth0')"/>
|
select="substring-after($netstring,'<network-device-name>')"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="contains($netstring,'192.168.0.1') and
|
<xsl:when test="contains($netstring,'192.168.0.1') and
|
||||||
|
|
Reference in a new issue