summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp/client
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-07-28 08:53:40 +0000
committerobrien <obrien@FreeBSD.org>2000-07-28 08:53:40 +0000
commit0c5a6efd0bc09ee52ea36b12044d1b7d8f630b7a (patch)
tree3f74359dadb30f789c282ee6046ee11d877c87f6 /contrib/isc-dhcp/client
parent4ca463816f28a475c8a66f2084a2d66128110123 (diff)
downloadFreeBSD-src-0c5a6efd0bc09ee52ea36b12044d1b7d8f630b7a.zip
FreeBSD-src-0c5a6efd0bc09ee52ea36b12044d1b7d8f630b7a.tar.gz
Prevent 'set' from it interpreting the shell var as an argument.
Submitted by: green
Diffstat (limited to 'contrib/isc-dhcp/client')
-rwxr-xr-xcontrib/isc-dhcp/client/scripts/freebsd12
1 files changed, 6 insertions, 6 deletions
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
OpenPOWER on IntegriCloud