Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 215873 Details for
Bug 265531
net-misc/dhcp-3.1.1: dhclient ignores nogateway option and installs a gateway regardless
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix the bug
dhclient-script.diff (text/plain), 1.08 KB, created by
Laszlo Valko
on 2010-01-09 23:52:29 UTC
(
hide
)
Description:
patch to fix the bug
Filename:
MIME Type:
Creator:
Laszlo Valko
Created:
2010-01-09 23:52:29 UTC
Size:
1.08 KB
patch
obsolete
>--- dhclient-script.orig 2009-10-28 11:44:29.000000000 +0100 >+++ dhclient-script 2010-01-10 00:45:39.234653277 +0100 >@@ -168,9 +168,11 @@ > route add -net $new_network_number $new_subnet_arg $metric_arg \ > dev $interface > fi >- for router in $new_routers; do >- route add default gw $router $metric_arg dev $interface >- done >+ if [ x$PEER_ROUTERS = x ] || [ x$PEER_ROUTERS = xyes ]; then >+ for router in $new_routers; do >+ route add default gw $router $metric_arg dev $interface >+ done >+ fi > fi > if [ x$new_ip_address != x$alias_ip_address ] && [ x$alias_ip_address != x ]; > then >@@ -220,9 +222,11 @@ > route add -net $new_network_number $new_subnet_arg $metric_arg \ > dev $interface > fi >- for router in $new_routers; do >- route add default gw $router $metric_arg dev $interface >- done >+ if [ x$PEER_ROUTERS = x ] || [ x$PEER_ROUTERS = xyes ]; then >+ for router in $new_routers; do >+ route add default gw $router $metric_arg dev $interface >+ done >+ fi > make_resolv_conf > exit_with_hooks 0 > 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 265531
:
215873
|
251113
|
251115