mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-05 22:04:48 +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
|
||||
#
|
||||
|
||||
for interface in $(/bin/ls /etc/sysconfig/network-scripts/ifcfg* | \
|
||||
for interface in $(/bin/ls /etc/sysconfig/nic-config/ifcfg* | \
|
||||
grep -v ifcfg-lo)
|
||||
do
|
||||
#
|
||||
@ -79,7 +79,7 @@ case "$1" in
|
||||
# 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)
|
||||
do
|
||||
#
|
||||
@ -144,17 +144,17 @@ be reached.
|
||||
|
||||
<para>
|
||||
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
|
||||
identification number (or whatever a user named it).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
First the network-scripts directory is created by running:
|
||||
First the nic-config directory is created by running:
|
||||
</para>
|
||||
|
||||
<blockquote><literallayout>
|
||||
<userinput>mkdir /etc/sysconfig/network-scripts</userinput>
|
||||
<userinput>mkdir /etc/sysconfig/nic-config</userinput>
|
||||
</literallayout></blockquote>
|
||||
|
||||
<para>
|
||||
@ -164,7 +164,7 @@ This creates a sample file ifcfg-eth0:
|
||||
</para>
|
||||
|
||||
<literallayout>
|
||||
<userinput>cat > /etc/sysconfig/network-scripts/ifcfg-eth0
|
||||
<userinput>cat > /etc/sysconfig/nic-config/ifcfg-eth0
|
||||
<< EOF</userinput>
|
||||
ONBOOT=yes
|
||||
DEVICE=eth0
|
||||
|
Loading…
Reference in New Issue
Block a user