From 0c5a6efd0bc09ee52ea36b12044d1b7d8f630b7a Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 28 Jul 2000 08:53:40 +0000 Subject: Prevent 'set' from it interpreting the shell var as an argument. Submitted by: green --- contrib/isc-dhcp/client/scripts/freebsd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'contrib') diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd index f3ed17c8..51c0c08 100755 --- a/contrib/isc-dhcp/client/scripts/freebsd +++ b/contrib/isc-dhcp/client/scripts/freebsd @@ -95,7 +95,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ route delete default $router >/dev/null 2>&1 done if [ "$old_static_routes" != "" ]; then - set $old_static_routes + set -- $old_static_routes while [ $# -gt 1 ]; do route delete $1 $2 shift; shift @@ -118,7 +118,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ done if [ "$new_static_routes" != "" ]; then $LOGGER "New Static Routes: $new_static_routes" - set $new_static_routes + set -- $new_static_routes while [ $# -gt 1 ]; do route add $1 $2 shift; shift @@ -148,7 +148,7 @@ if [ x$reason = xEXPIRE ] || [ x$reason = xFAIL ]; then route delete default $router >/dev/null 2>&1 done if [ "$old_static_routes" != "" ]; then - set $old_static_routes + set -- $old_static_routes while [ $# -gt 1 ]; do route delete $1 $2 shift; shift @@ -176,7 +176,7 @@ if [ x$reason = xTIMEOUT ]; then sleep 1 if [ "$new_routers" != "" ]; then $LOGGER "New Routers: $new_routers" - set $new_routers + set -- $new_routers if ping -q -c 1 $1; then if [ x$new_ip_address != x$alias_ip_address ] && \ [ x$alias_ip_address != x ]; then @@ -185,7 +185,7 @@ if [ x$reason = xTIMEOUT ]; then for router in $new_routers; do route add default $router >/dev/null 2>&1 done - set $new_static_routes + set -- $new_static_routes while [ $# -gt 1 ]; do route add $1 $2 shift; shift @@ -206,7 +206,7 @@ if [ x$reason = xTIMEOUT ]; then route delete default $router >/dev/null 2>&1 done if [ "$old_static_routes" != "" ]; then - set $old_static_routes + set -- $old_static_routes while [ $# -gt 1 ]; do route delete $1 $2 shift; shift -- cgit v1.1