summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient-script
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/dhclient-script')
-rw-r--r--sbin/dhclient/dhclient-script8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script
index 1f4e540ad52..4aebd2e0960 100644
--- a/sbin/dhclient/dhclient-script
+++ b/sbin/dhclient/dhclient-script
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: dhclient-script,v 1.8 2005/05/24 03:11:12 todd Exp $
+# $OpenBSD: dhclient-script,v 1.9 2006/06/01 19:00:39 krw Exp $
#
# Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org>
#
@@ -24,7 +24,7 @@
delete_old_address() {
if [ -n "$old_ip_address" ]; then
- ifconfig $interface inet -alias $old_ip_address $medium
+ ifconfig $interface inet delete $old_ip_address $medium
route delete "$old_ip_address" 127.0.0.1 >/dev/null 2>&1
fi
}
@@ -42,7 +42,7 @@ add_new_address() {
delete_old_alias() {
if [ -n "$alias_ip_address" ]; then
- ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1
+ ifconfig $interface inet delete $alias_ip_address > /dev/null 2>&1
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
fi
}
@@ -215,7 +215,7 @@ TIMEOUT)
fi
fi
fi
- ifconfig $interface inet -alias $new_ip_address $medium
+ ifconfig $interface inet delete $new_ip_address $medium
# XXX Why not a delete_old_address as before all other invocations of
# delete_old_routes?
delete_old_routes