diff options
author | Peter Galbavy <peter@cvs.openbsd.org> | 2000-09-05 07:21:35 +0000 |
---|---|---|
committer | Peter Galbavy <peter@cvs.openbsd.org> | 2000-09-05 07:21:35 +0000 |
commit | e55ccfb25a04c4b2ee43e1949e566214f668b770 (patch) | |
tree | 62a5f84996b8bde454a57cc47d78549c7489c53c | |
parent | 534c5d8f534ddf5a7b8ecae81fda376cfc73a2d3 (diff) |
Remove quotes from arguement lists to for loops.
This applied to two type of dhcp option, "domain_name_servers" and
"routers".
This fixes the problem of seeing mutliple nameservers on one
nameserver line in resolv.conf. If anyone used multiple routers, then
it would fix this too.
-rw-r--r-- | usr.sbin/dhcp/dhclient/scripts/dhclient-script | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/dhcp/dhclient/scripts/dhclient-script b/usr.sbin/dhcp/dhclient/scripts/dhclient-script index 098a24b66a0..a3d7a1a6f0a 100644 --- a/usr.sbin/dhcp/dhclient/scripts/dhclient-script +++ b/usr.sbin/dhcp/dhclient/scripts/dhclient-script @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: dhclient-script,v 1.7 2000/07/03 22:33:19 niklas Exp $ +# $OpenBSD: dhclient-script,v 1.8 2000/09/05 07:21:34 peter Exp $ # if [ "x$new_network_number" != "x" ]; then @@ -59,7 +59,7 @@ if [ "x$reason" = "xBOUND" ] || [ "x$reason" = "xRENEW" ] || \ ifconfig "$interface" inet -alias "$old_ip_address" fi route delete "$old_ip_address" 127.1 >/dev/null 2>&1 - for router in "$old_routers"; do + for router in $old_routers; do route delete default "$router" >/dev/null 2>&1 done if [ "$old_static_routes" != "" ]; then @@ -81,7 +81,7 @@ if [ "x$reason" = "xBOUND" ] || [ "x$reason" = "xRENEW" ] || \ $new_broadcast_arg fi route add "$new_ip_address" 127.1 >/dev/null 2>&1 - for router in "$new_routers"; do + for router in $new_routers; do route add default "$router" >/dev/null 2>&1 done if [ "$new_static_routes" != "" ]; then @@ -102,7 +102,7 @@ if [ "x$reason" = "xBOUND" ] || [ "x$reason" = "xRENEW" ] || \ if [ -n "$new_domain_name_servers" ]; then echo "search $new_domain_name" >/etc/resolv.conf - for nameserver in "$new_domain_name_servers"; do + for nameserver in $new_domain_name_servers; do echo "nameserver $nameserver" >>/etc/resolv.conf done if [ -f /etc/resolv.conf.tail ]; then @@ -125,7 +125,7 @@ if [ "x$reason" = "xEXPIRE" ] || [ "x$reason" = "xFAIL" ]; then ifconfig "$interface" inet -alias "$old_ip_address" fi route delete "$old_ip_address" 127.1 >/dev/null 2>&1 - for router in "$old_routers"; do + for router in $old_routers; do route delete default "$router" >/dev/null 2>&1 done if [ "$old_static_routes" != "" ]; then @@ -167,7 +167,7 @@ if [ "x$reason" = "xTIMEOUT" ]; then route add "$alias_ip_address" 127.0.0.1 fi route add "$new_ip_address" 127.1 >/dev/null 2>&1 - for router in "$new_routers"; do + for router in $new_routers; do route add default "$router" >/dev/null 2>&1 done if [ "$new_static_routes" != "" ]; then @@ -180,7 +180,7 @@ if [ "x$reason" = "xTIMEOUT" ]; then if [ "$new_domain_name" != "" ]; then if [ -n "$new_domain_name_servers" ]; then echo "search $new_domain_name" >/etc/resolv.conf.std - for nameserver in "$new_domain_name_servers"; do + for nameserver in $new_domain_name_servers; do echo "nameserver $nameserver" >>/etc/resolv.conf.std done if [ -f /etc/resolv.conf.tail ]; then @@ -200,7 +200,7 @@ if [ "x$reason" = "xTIMEOUT" ]; then else ifconfig "$interface" inet -alias "$new_ip_address" fi - for router in "$old_routers"; do + for router in $old_routers; do route delete default "$router" >/dev/null 2>&1 done if [ "$old_static_routes" != "" ]; then |