Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 23817 Details for
Bug 38210
net.eth?: Add hook to run script before ifconfig (for wireless, etc.)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Modified net.eth0 to run script before ifconfig step
net.eth0.diff (text/plain), 979 bytes, created by
Luke Maurer (Jyrinx)
on 2004-01-14 13:34:37 UTC
(
hide
)
Description:
Modified net.eth0 to run script before ifconfig step
Filename:
MIME Type:
Creator:
Luke Maurer (Jyrinx)
Created:
2004-01-14 13:34:37 UTC
Size:
979 bytes
patch
obsolete
>--- rc-scripts-1.4.3.12p2.old/init.d/net.eth0 2003-11-26 13:23:15.000000000 -0600 >+++ rc-scripts-1.4.3.12p2/init.d/net.eth0 2004-01-14 15:18:13.209486312 -0600 >@@ -34,6 +34,7 @@ > alias_IFACE="$(eval echo \$\{alias_${iface}\})" > status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '$0 ~ /Link/ { if ($1 == IFACE) print "up" }')" > vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" >+ preifup_IFACE="$(eval echo \$\{preifup_${iface}\})" > } > > iface_start() { >@@ -43,6 +44,19 @@ > checkconfig || return 1 > > local IFACE="${1}" >+ >+ if [ -n ${preifup_IFACE} ] >+ then >+ # We have a custom script to run before ifconfig >+ ebegin "Setting up ${IFACE} by running script ${preifup_IFACE}" >+ ${preifup_IFACE} || { >+ retval=$? >+ eend ${retval} "Setup script ${preifup_IFACE} for ${IFACE} failed" >+ return ${retval} >+ } >+ eend 0 >+ fi >+ > ebegin "Bringing ${IFACE} up" > if [ "${iface_IFACE}" != "dhcp" ] > then
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 38210
: 23817 |
23818
|
35994