diff -Naur BOOK/connect/dhcp/bootscripts.xml BOOK-dj/connect/dhcp/bootscripts.xml
old
|
new
|
|
51 | 51 | echo "Bringing up the eth0 interface..." |
52 | 52 | modprobe eth0 |
53 | 53 | loadproc $DHCP_PROG $DHCP_START |
| 54 | |
54 | 55 | <command>EOF</command></userinput></screen> |
55 | 56 | |
56 | 57 | <para>Then the <filename>ifdown-eth0</filename> script:</para> |
… |
… |
|
65 | 66 | echo "Bringing down the eth0 interface..." |
66 | 67 | $DHCP_PROG $DHCP_STOP |
67 | 68 | evaluate_retval |
| 69 | |
| 70 | <command>EOF</command></userinput></screen> |
| 71 | |
| 72 | <para>Next, we need to make corrections to the |
| 73 | <filename>/etc/hosts</filename> file. Be sure to replace |
| 74 | <emphasis role="strong">hostname</emphasis> and |
| 75 | <emphasis role="strong">domain_name</emphasis> with apropriate values.</para> |
| 76 | |
| 77 | <screen><userinput><command>mv -f /etc/hosts /etc/hosts.bak && |
| 78 | cat > /etc/hosts << "EOF" </command> |
| 79 | # Begin /etc/hosts |
| 80 | |
| 81 | 127.0.0.1 <<command>hostname</command>> <<command>hostname.domain_name</command>> localhost localhost.localdomain |
| 82 | |
| 83 | # End /etc/hosts |
68 | 84 | <command>EOF</command></userinput></screen> |
69 | 85 | |
70 | | <para>Finally, we need to make these scripts executable:</para> |
| 86 | <para>Finally, we need to make the scripts executable:</para> |
71 | 87 | |
72 | 88 | <screen><userinput><command>chmod 755 /etc/sysconfig/network-devices/ifup-eth0 && |
73 | 89 | chmod 755 /etc/sysconfig/network-devices/ifdown-eth0</command></userinput></screen> |