Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/dhcp/client/scripts Pull up revision 1.12 (req...
details: https://anonhg.NetBSD.org/src/rev/b6b78ace23b8
branches: netbsd-1-5
changeset: 491095:b6b78ace23b8
user: he <he%NetBSD.org@localhost>
date: Wed Apr 04 20:55:43 2001 +0000
description:
Pull up revision 1.12 (requested by mellon):
Update DHCP software to ISC version 3, Beta 2, Patchlevel 23.
diffstat:
usr.sbin/dhcp/client/scripts/netbsd | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (71 lines):
diff -r ec8e0736dad3 -r b6b78ace23b8 usr.sbin/dhcp/client/scripts/netbsd
--- a/usr.sbin/dhcp/client/scripts/netbsd Wed Apr 04 20:55:40 2001 +0000
+++ b/usr.sbin/dhcp/client/scripts/netbsd Wed Apr 04 20:55:43 2001 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: netbsd,v 1.11 2000/06/10 18:17:20 mellon Exp $
+# $NetBSD: netbsd,v 1.11.2.1 2001/04/04 20:55:43 he Exp $
make_resolv_conf() {
echo search $new_domain_name >/etc/resolv.conf
@@ -60,8 +60,8 @@
fi
if [ x$reason = xMEDIUM ]; then
- ifconfig $interface $medium
- ifconfig $interface inet -alias 0.0.0.0 $medium >/dev/null 2>&1
+ eval "ifconfig $interface $medium"
+ eval "ifconfig $interface inet -alias 0.0.0.0 $medium" >/dev/null 2>&1
sleep 1
exit_with_hooks 0
fi
@@ -105,7 +105,7 @@
fi
if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]
then
- ifconfig $interface inet -alias $old_ip_address $medium
+ eval "ifconfig $interface inet -alias $old_ip_address $medium"
route delete $old_ip_address 127.1 >/dev/null 2>&1
for router in $old_routers; do
route delete default $router >/dev/null 2>&1
@@ -121,8 +121,8 @@
fi
if [ x$old_ip_address = x ] || [ x$old_ip_address != x$new_ip_address ] || \
[ x$reason = xBOUND ] || [ x$reason = xREBOOT ]; then
- ifconfig $interface inet $new_ip_address $new_netmask_arg \
- $new_broadcast_arg $medium
+ eval "ifconfig $interface inet $new_ip_address $new_netmask_arg \
+ $new_broadcast_arg $medium"
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
route add default $router >/dev/null 2>&1
@@ -154,7 +154,7 @@
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
fi
if [ x$old_ip_address != x ]; then
- ifconfig $interface inet -alias $old_ip_address $medium
+ eval "ifconfig $interface inet -alias $old_ip_address $medium"
route delete $old_ip_address 127.1 >/dev/null 2>&1
for router in $old_routers; do
route delete default $router >/dev/null 2>&1
@@ -187,8 +187,8 @@
if [ x$new_nis_domain != x ]; then
domainname $new_nis_domain
fi
- ifconfig $interface inet $new_ip_address $new_netmask_arg \
- $new_broadcast_arg $medium
+ eval "ifconfig $interface inet $new_ip_address $new_netmask_arg \
+ $new_broadcast_arg $medium"
sleep 1
if [ "$new_routers" != "" ]; then
set $new_routers
@@ -211,7 +211,7 @@
exit_with_hooks 0
fi
fi
- ifconfig $interface inet -alias $new_ip_address $medium
+ eval "ifconfig $interface inet -alias $new_ip_address $medium"
for router in $old_routers; do
route delete default $router >/dev/null 2>&1
done
Home |
Main Index |
Thread Index |
Old Index