Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32840 Details for
Bug 53201
Patch: Modified init.d/net.eth0 for fast IP assignment via DHCP for non-authoritative servers
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for /etc/init.d/net.eth0
net.eth0.patch (text/plain), 1.20 KB, created by
Tim Weber
on 2004-06-07 02:13:02 UTC
(
hide
)
Description:
Patch for /etc/init.d/net.eth0
Filename:
MIME Type:
Creator:
Tim Weber
Created:
2004-06-07 02:13:02 UTC
Size:
1.20 KB
patch
obsolete
>--- net.eth0.orig 2004-06-04 09:34:56.000000000 +0200 >+++ net.eth0 2004-06-04 09:55:42.000000000 +0200 >@@ -37,6 +37,7 @@ > # vlans_IFACE (space-separated list) > # ifconfig_IFACE (array of ifconfig lines, replaces iface_IFACE) > # dhcpcd_IFACE (command-line args for dhcpcd) >+# clearip_IFACE (delete IP cache file before DHCPing if set) > # routes_IFACE (array of route lines) > # inet6_IFACE (array of inet6 lines) > setup_vars() { >@@ -46,6 +47,7 @@ > eval vlans_IFACE=\"\$\{iface_${iface}_vlans\}\" > eval ifconfig_IFACE=( \"\$\{ifconfig_$iface\[@\]\}\" ) > eval dhcpcd_IFACE=\"\$\{dhcpcd_$iface\}\" >+ eval clearip_IFACE=\"\$\{clearip_$iface\}\" > eval routes_IFACE=( \"\$\{routes_$iface\[@\]\}\" ) > eval inet6_IFACE=( \"\$\{inet6_$iface\[@\]\}\" ) > >@@ -78,6 +80,14 @@ > local IFACE=${1} i x > checkconfig || return 1 > >+ # Check if we should clear the IP address of that interface before DHCPing >+ if [[ ! -z ${clearip_IFACE} ]]; then >+ einfo "Clearing cached IP for ${IFACE}" >+ if [[ -f "/var/cache/dhcpcd-${IFACE}.cache" ]]; then >+ rm "/var/cache/dhcpcd-${IFACE}.cache" >+ fi >+ fi >+ > if [[ ${ifconfig_IFACE} != dhcp ]]; then > # Show the address, but catch if this interface will be inet6 only > i=${ifconfig_IFACE%% *}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53201
:
32840
|
32841
|
32847
|
32848