diff options
author | Roy Marples <uberlord@gentoo.org> | 2006-05-10 13:31:25 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2006-05-10 13:31:25 +0000 |
commit | 06f6b49d13b0bfc5abcf3c04445334bbb86b1a5a (patch) | |
tree | f4c7aae255fc8b18fbf89afa2b4a2848164e50be /net-misc | |
parent | Arts tests fail, so just don't run them (diff) | |
download | gentoo-2-06f6b49d13b0bfc5abcf3c04445334bbb86b1a5a.tar.gz gentoo-2-06f6b49d13b0bfc5abcf3c04445334bbb86b1a5a.tar.bz2 gentoo-2-06f6b49d13b0bfc5abcf3c04445334bbb86b1a5a.zip |
Fix metric patch unary error.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch index 492cd56c329b..040ef779d761 100644 --- a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch +++ b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch @@ -106,7 +106,7 @@ - if [ $relmajor -lt 2 ] || \ - ( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] ); then - route add -net $new_network_number $new_subnet_arg dev $interface -+ if [ $IF_METRIC -gt 0 ]; then ++ if [ x$IF_METRIC != x ] && [ x$IF_METRIC != x0 ]; then + route del -net $new_network_number $new_subnet_arg \ + dev $interface + route add -net $new_network_number $new_subnet_arg $metric_arg \ @@ -126,7 +126,7 @@ - ( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] ); then - route add -net $new_network_number + # Add a network route to the computed network address. -+ if [ $IF_METRIC -gt 0 ]; then ++ if [ x$IF_METRIC != x ] && [ x$IF_METRIC != x0 ]; then + route del -net $new_network_number $new_subnet_arg \ + dev $interface + route add -net $new_network_number $new_subnet_arg $metric_arg \ |