| 1 | # ChangeLog for Gentoo Linux System Intialization ("rc") scripts |
1 | # ChangeLog for Gentoo Linux System Intialization ("rc") scripts |
| 2 | # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL |
2 | # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL |
| 3 | # Written by Daniel Robbins (drobbins@gentoo.org) |
3 | # Written by Daniel Robbins (drobbins@gentoo.org) |
|
|
4 | |
|
|
5 | 16 Mar 2004; Aron Griffis <agriffis@gentoo.org>: |
|
|
6 | |
|
|
7 | The changes in this commit pertain primarily to |
|
|
8 | http://bugs.gentoo.org/show_bug.cgi?id=19695 |
|
|
9 | http://bugs.gentoo.org/show_bug.cgi?id=35736 |
|
|
10 | |
|
|
11 | Specify routes as an array per interface, for example: |
|
|
12 | routes_eth0=( |
|
|
13 | "-net 10.1.0.0 netmask 255.255.0.0 gw 10.0.0.5" |
|
|
14 | "-net 10.2.0.0 netmask 255.255.0.0 gw 10.0.0.6" |
|
|
15 | "-host 10.3.0.1 dev eth0" |
|
|
16 | ) |
|
|
17 | |
|
|
18 | You can optionally use the gateway variable or just put the default route |
|
|
19 | in the routes variable. The following two are REDUNDANT: |
|
|
20 | |
|
|
21 | routes_eth0=( "default gw 10.0.0.5" ) |
|
|
22 | gateway="eth0/10.0.0.5" |
|
|
23 | |
|
|
24 | Old configuration variables in /etc/conf.d/net are fully supported and |
|
|
25 | used transparently if ifconfig_eth0 is missing. In other words, this new |
|
|
26 | script is fully backward-compatible. However you can get rid of |
|
|
27 | iface_eth0, alias_eth0, broadcast_eth0 and netmask_eth0 if you want by |
|
|
28 | using the new syntax: |
|
|
29 | |
|
|
30 | ifconfig_eth0=( |
|
|
31 | "10.0.0.6 broadcast 10.0.255.255 netmask 255.255.0.0" |
|
|
32 | "192.168.1.1 netmask 255.255.255.0" |
|
|
33 | "123.456.789.1" |
|
|
34 | ) |
|
|
35 | |
|
|
36 | Full backward compatibility so no danger to screwing up users relying on |
|
|
37 | existing /etc/conf.d/net setup |
|
|
38 | |
|
|
39 | NET_DEBUG can be set in the environment for copious debugging output |
|
|
40 | |
|
|
41 | Deprecate [ ] in favor of [[ ]] which has fewer quoting issues and |
|
|
42 | better functionality (and is even slightly faster) |
|
|
43 | |
|
|
44 | Properly localize all variables, including variables returned by |
|
|
45 | setup_vars |
|
|
46 | |
|
|
47 | Allow full options for every ifconfig command, both base address and |
|
|
48 | aliases via ifconfig_eth0, replacing the convoluted and less-functional |
|
|
49 | iface_eth0, alias_eth0, broadcast_eth0, netmask_eth0 |
|
|
50 | |
|
|
51 | Provide full support for static routes via routes_eth0 |
|
|
52 | |
|
|
53 | Fix potential quoting problems in setup_vars by using better eval syntax |
|
|
54 | instead of eval echo |
|
|
55 | |
|
|
56 | Display IP addresses while configuring, both DHCP-retrieved and |
|
|
57 | statically set addresses |
|
|
58 | |
|
|
59 | Collapse redundant caching of $? since eend returns $? again |
|
|
60 | |
|
|
61 | Report when keeping kernel configuration for an interface along with IP |
|
|
62 | address gleaned |
|
|
63 | |
|
|
64 | Don't reset the default gateway if it is already set correctly |
|
|
65 | |
|
|
66 | Don't bind default gateway to particular interface when /sbin/route is |
|
|
67 | called so that it can survive if there is more than one interface on the |
|
|
68 | required subnet. (Old behavior can be obtained by setting |
|
|
69 | routes_eth0="default gw 1.2.3.4 dev eth0" if you really want it) |
|
|
70 | |
|
|
71 | Don't bomb if default gateway can't be set since that doesn't |
|
|
72 | necessarily mean that the interface configuration is invalid. |
|
|
73 | (Old behavior was completely broken, but commented section |
|
|
74 | demonstrates how to do it right if necessary) |
|
|
75 | |
|
|
76 | iface_stop no longer relies on configuration in /etc/conf.d/net AT ALL. |
|
|
77 | This is very good because it means you can put new configuration in |
|
|
78 | /etc/conf.d/net, then restart the interface and the old configuration will |
|
|
79 | be properly shut down. |
|
|
80 | |
|
|
81 | iface_stop reports when it is releasing the DHCP lease |
| 4 | |
82 | |
| 5 | * rc-scripts 1.4.3.13p1 (26 Feb 2004) |
83 | * rc-scripts 1.4.3.13p1 (26 Feb 2004) |
| 6 | |
84 | |
| 7 | 26 Feb 2004; Martin Schlemmer <azarah@gentoo.org>: |
85 | 26 Feb 2004; Martin Schlemmer <azarah@gentoo.org>: |
| 8 | |
86 | |