Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 53709 Details for
Bug 85659
Improvement for 'net.ethXX' in fallback case
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for net.eth0 adding new 'gateway_fallback' option
fallbackgateway.patch (text/plain), 972 bytes, created by
Pawel Kraszewski
on 2005-03-17 09:52:15 UTC
(
hide
)
Description:
Patch for net.eth0 adding new 'gateway_fallback' option
Filename:
MIME Type:
Creator:
Pawel Kraszewski
Created:
2005-03-17 09:52:15 UTC
Size:
972 bytes
patch
obsolete
>--- net.eth0 2005-03-17 18:26:04.715639680 +0000 >+++ net.new 2005-03-17 18:27:46.635145560 +0000 >@@ -126,6 +126,25 @@ > ifconfig ${IFACE} ${ifconfig_fallback_IFACE} >${devnull} && \ > ifconfig ${IFACE} up &>${devnull} > eend $? || return $? >+ if [[ ${gateway_fallback} == ${IFACE}/* ]]; then >+ local ogw=$(/bin/netstat -rn | awk '$1 == "0.0.0.0" {print $2}') >+ local gw=${gateway_fallback#*/} >+ if [[ ${ogw} != ${gw} ]]; then >+ ebegin " Setting fallback default gateway ($gw)" >+ >+ # First delete any existing route if it was setup by kernel... >+ /sbin/route del default dev ${IFACE} &>${devnull} >+ >+ # Second delete old gateway if it was set... >+ /sbin/route del default gw ${ogw} &>${devnull} >+ >+ # Third add our new default gateway >+ /sbin/route add default gw ${gw} >${devnull} >+ eend $? || { >+ true # need to have some command in here >+ } >+ fi >+ fi > else > return $retval > fi
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 85659
: 53709