Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11196 Details for
Bug 19695
no designated way to add static routes in gentoo(/etc/conf.d/local.start is kludgy)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds static routes support to the net interface
patch.net (text/plain), 888 bytes, created by
David Bryson (RETIRED)
on 2003-04-26 16:19:51 UTC
(
hide
)
Description:
adds static routes support to the net interface
Filename:
MIME Type:
Creator:
David Bryson (RETIRED)
Created:
2003-04-26 16:19:51 UTC
Size:
888 bytes
patch
obsolete
>--- net.eth0 2003-04-16 10:34:19.000000000 -0700 >+++ net.eth0.new 2003-04-16 10:33:43.000000000 -0700 >@@ -26,6 +26,7 @@ > dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${IFACE}\})" > inet6_IFACE="$(eval echo \$\{inet6_${IFACE}\})" > alias_IFACE="$(eval echo \$\{alias_${IFACE}\})" >+ route_IFACE="$(eval echo \$\{alias_${IFACE}\})" > status_IFACE="$(ifconfig | gawk -v IFACE="${IFACE}" '/Link/ { if ($1 == IFACE) print "up" }')" > } > >@@ -123,6 +124,16 @@ > eend 0 > fi > >+ if [ -n "$(eval echo \$\{route_${IFACE}\})" ] >+ then >+ ebegin " Setting static routes..." >+ /sbin/route ${route_IFACE} dev ${IFACE} &> /dev/null || { >+ retval=$? >+ eend ${retval} "Failed to add static routes on ${IFACE}" >+ return ${retval} >+ } >+ fi >+ > # Enabling rp_filter causes wacky packets to be auto-dropped by > # the kernel > if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ] > > > > >
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 19695
:
11196
|
13013
|
19219
|
19220
|
27047