Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 251113 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 for version 3.1.3_p1
dhclient-script-3.1.3_p1.patch (text/plain), 1.31 KB, created by
Laszlo Valko
on 2010-10-18 11:57:11 UTC
(
hide
)
Description:
patch for version 3.1.3_p1
Filename:
MIME Type:
Creator:
Laszlo Valko
Created:
2010-10-18 11:57:11 UTC
Size:
1.31 KB
patch
obsolete
>diff -Naur dhcp-3.1.3_p1.orig/work/dhcp-3.1-ESV/client/scripts/linux dhcp-3.1.3_p1/work/dhcp-3.1-ESV/client/scripts/linux >--- dhcp-3.1.3_p1.orig/work/dhcp-3.1-ESV/client/scripts/linux 2010-10-18 13:45:17.241101622 +0200 >+++ dhcp-3.1.3_p1/work/dhcp-3.1-ESV/client/scripts/linux 2010-10-18 13:48:14.077101523 +0200 >@@ -178,9 +178,11 @@ > ( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] ); then > route add -net $new_network_number $new_subnet_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 >@@ -226,9 +228,11 @@ > ( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] ); then > route add -net $new_network_number > 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