summaryrefslogtreecommitdiff
path: root/client/scripts/solaris
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2011-05-18 19:55:44 +0000
committerShawn Routhier <sar@isc.org>2011-05-18 19:55:44 +0000
commit4f55e11bd40ecdbdf4a7a5903b68e22e94c3d258 (patch)
treeb2f933e6ee124dde3e9d4467589c139d7d8b13fa /client/scripts/solaris
parent5c09391c078ed6da52492aa523eaa60af1f46d8b (diff)
downloadisc-dhcp-4f55e11bd40ecdbdf4a7a5903b68e22e94c3d258.tar.gz
Client Script fixes
[ISC-Bugs #23045] Typos in client/scripts/openbsd [ISC-Bugs #23565] In the client scripts add a zone id (interface id) if the domain search address is link local. [ISC-Bugs #1277] In some of the client scripts add code to handle the case of the default router information being changed without the address being changed.
Diffstat (limited to 'client/scripts/solaris')
-rwxr-xr-xclient/scripts/solaris13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/scripts/solaris b/client/scripts/solaris
index 4a5452c4..af553b9d 100755
--- a/client/scripts/solaris
+++ b/client/scripts/solaris
@@ -128,6 +128,19 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
for router in $new_routers; do
route add default $router 1 >/dev/null 2>&1
done
+ else
+ # we haven't changed the address, have we changed other options
+ # that we wish to update?
+ if [ x$new_routers != x ] && [ x$new_routers != x$old_routers ] ; then
+ # if we've changed routers delete the old and add the new.
+ $LOGGER "New Routers: $new_routers"
+ for router in $old_routers; do
+ route delete default $router >/dev/null 2>&1
+ done
+ for router in $new_routers; do
+ route add default $router 1 >/dev/null 2>&1
+ done
+ fi
fi
if [ x$new_ip_address != x$alias_ip_address ] && [ x$alias_ip_address != x ];
then