summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorMarco Pfatschbacher <mpf@cvs.openbsd.org>2006-06-03 19:30:07 +0000
committerMarco Pfatschbacher <mpf@cvs.openbsd.org>2006-06-03 19:30:07 +0000
commit234d3596a3dc18f5c939dba515ee64cd81a0394e (patch)
tree66a029fd75caa1fcd5eda5cc8f4e9e0a42de4394 /sbin/dhclient
parentb3ddd8f307b78489a102a2e1c49a6f3b3c40eb46 (diff)
Use ifconfig delete/alias conforming with the man page.
OK krw@
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient-script10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script
index 4aebd2e0960..f87459da070 100644
--- a/sbin/dhclient/dhclient-script
+++ b/sbin/dhclient/dhclient-script
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: dhclient-script,v 1.9 2006/06/01 19:00:39 krw Exp $
+# $OpenBSD: dhclient-script,v 1.10 2006/06/03 19:30:06 mpf 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 delete $old_ip_address $medium
+ ifconfig $interface inet $old_ip_address delete $medium
route delete "$old_ip_address" 127.0.0.1 >/dev/null 2>&1
fi
}
@@ -42,14 +42,14 @@ add_new_address() {
delete_old_alias() {
if [ -n "$alias_ip_address" ]; then
- ifconfig $interface inet delete $alias_ip_address > /dev/null 2>&1
+ ifconfig $interface inet $alias_ip_address delete > /dev/null 2>&1
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
fi
}
add_new_alias() {
if [ -n "$alias_ip_address" ]; then
- ifconfig $interface inet alias $alias_ip_address netmask \
+ ifconfig $interface inet $alias_ip_address alias netmask \
$alias_subnet_mask
route add $alias_ip_address 127.0.0.1
fi
@@ -215,7 +215,7 @@ TIMEOUT)
fi
fi
fi
- ifconfig $interface inet delete $new_ip_address $medium
+ ifconfig $interface inet $new_ip_address delete $medium
# XXX Why not a delete_old_address as before all other invocations of
# delete_old_routes?
delete_old_routes