Prevent 'set' from it interpreting the shell var as an argument.

Submitted by:	green
This commit is contained in:
obrien 2000-07-28 08:53:40 +00:00
parent 973b160fa3
commit 767928b5c0

View File

@ -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