Sfoglia il codice sorgente

Use cat > file << EOF construction to create sample ifcfg-eth0 file

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@247 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 24 anni fa
parent
commit
a202fac245
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      chapter07/ethnet.xml

+ 5 - 1
chapter07/ethnet.xml

@@ -157,17 +157,21 @@ First create the network-scripts directory by running:
 </literallayout></blockquote>
 
 <para>
+
 Now, create new files in that directory containing the following.
-Example file names are ifcfg-eth0, ifcfg-eth0:3 and ifcfg-eth1:2
+The following creates a sample file ifcfg-eth0:
 </para>
 
 <blockquote><literallayout>
 
+<userinput>cat &gt; /etc/sysconfig/network-scripts/ifcfg-eth0
+	&lt;&lt; EOF</userinput>
 ONBOOT=yes
 DEVICE=eth0
 IP=192.168.1.1
 NETMASK=255.255.255.0
 BROADCAST=192.168.1.255
+<userinput>EOF</userinput>
 
 </literallayout></blockquote>