mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Renamed network-scripts into nic-config
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@700 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
4d4690588b
commit
a9bc54b7ba
@ -37,7 +37,7 @@ case "$1" in
|
|||||||
# Obtain all the network card configuration files
|
# Obtain all the network card configuration files
|
||||||
#
|
#
|
||||||
|
|
||||||
for interface in $(/bin/ls /etc/sysconfig/network-scripts/ifcfg* | \
|
for interface in $(/bin/ls /etc/sysconfig/nic-config/ifcfg* | \
|
||||||
grep -v ifcfg-lo)
|
grep -v ifcfg-lo)
|
||||||
do
|
do
|
||||||
#
|
#
|
||||||
@ -79,7 +79,7 @@ case "$1" in
|
|||||||
# Obtain all the network card configuration files
|
# Obtain all the network card configuration files
|
||||||
#
|
#
|
||||||
|
|
||||||
for interface in $(/bin/ls /etc/sysconfig/network-scripts/ifcfg* | \
|
for interface in $(/bin/ls /etc/sysconfig/nic-config/ifcfg* | \
|
||||||
grep -v ifcfg-lo)
|
grep -v ifcfg-lo)
|
||||||
do
|
do
|
||||||
#
|
#
|
||||||
@ -144,17 +144,17 @@ be reached.
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
Which interfaces are brought up and down by the ethnet script depends on
|
Which interfaces are brought up and down by the ethnet script depends on
|
||||||
the files in the /etc/sysconfig/network-scripts directory. This
|
the files in the /etc/sysconfig/nic-config directory. This
|
||||||
directory should contain files in the form of ifcfg-x where x is an
|
directory should contain files in the form of ifcfg-x where x is an
|
||||||
identification number (or whatever a user named it).
|
identification number (or whatever a user named it).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
First the network-scripts directory is created by running:
|
First the nic-config directory is created by running:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<blockquote><literallayout>
|
||||||
<userinput>mkdir /etc/sysconfig/network-scripts</userinput>
|
<userinput>mkdir /etc/sysconfig/nic-config</userinput>
|
||||||
</literallayout></blockquote>
|
</literallayout></blockquote>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -164,7 +164,7 @@ This creates a sample file ifcfg-eth0:
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<literallayout>
|
<literallayout>
|
||||||
<userinput>cat > /etc/sysconfig/network-scripts/ifcfg-eth0
|
<userinput>cat > /etc/sysconfig/nic-config/ifcfg-eth0
|
||||||
<< EOF</userinput>
|
<< EOF</userinput>
|
||||||
ONBOOT=yes
|
ONBOOT=yes
|
||||||
DEVICE=eth0
|
DEVICE=eth0
|
||||||
|
Loading…
Reference in New Issue
Block a user