Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70227 Details for
Bug 108345
dhcpcd should execute /etc/dhcpc/dhcpcd.exe if it's going to override -c
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allows the use of the -c dhcpcd option
dhcpcd-wrapper-script.patch (text/plain), 1.72 KB, created by
Roy Marples (RETIRED)
on 2005-10-09 08:31:40 UTC
(
hide
)
Description:
allows the use of the -c dhcpcd option
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-10-09 08:31:40 UTC
Size:
1.72 KB
patch
obsolete
>--- dhcpcd-wrapper 2005-09-07 07:24:48.000000000 +0100 >+++ /lib/rcscripts/net.modules.d/helpers.d/dhcpcd-wrapper 2005-10-09 16:30:44.000000000 +0100 >@@ -15,24 +15,25 @@ > > . /lib/rcscripts/net.modules.d/helpers.d/module-loader > >-if [[ ${action} == "up" ]]; then >- # Map MAC address variables to interface variables >- macnet_pre_start "${interface}" 1>/dev/null >+# Map MAC address variables to interface variables >+macnet_pre_start "${interface}" 1>/dev/null > >- # Map wireless ESSID variables to interface variables >- if [[ -n ${wireless_module} ]]; then >- if wireless_check_extensions "${interface}" ; then >- essidnet_pre_start "${interface}" 1>/dev/null >- fi >+# Map wireless ESSID variables to interface variables >+if [[ -n ${wireless_module} ]]; then >+ if wireless_check_extensions "${interface}" ; then >+ essidnet_pre_start "${interface}" 1>/dev/null > fi >+fi >+ >+# Add any search paths if we have any defined >+ifvar=$( bash_variable "${interface}" ) > >- # Add any search paths if we have any defined >- ifvar=$( bash_variable "${interface}" ) >+if [[ ${action} == "up" ]]; then > eval d=\" \$\{dhcp_${ifvar}\} \" > [[ ${d} == " " ]] && d=" ${dhcp} " > > resolv="${statedir}/${interface}/resolv.conf" >- >+ > if [[ ${d} != *" nodns "* ]]; then > eval search=\"\$\{dns_search_${ifvar}\}\" > if [[ -n ${search} ]]; then >@@ -46,6 +47,16 @@ > system_dns_extra "${interface}" "${resolv}" > fi > >+# As we override the -c option, we need to call the specified script ourself >+eval opts=\"\$\{dhcpcd_${ifvar}\}\" >+exe="${opts##* -c }" >+if [[ -n ${exe} && ${exe} != "${opts}" ]]; then >+ exe="${exe%% *}" >+else >+ exe="/etc/dhcpc/dhcpcd.exe" >+fi >+[[ -x ${exe} ]] && ( ${exe} "$@" 1>/dev/null ) >+ > . /lib/rcscripts/net.modules.d/helpers.d/dhcp-state > > # vim:ts=4
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 108345
:
70227