summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-06-01 19:00:40 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-06-01 19:00:40 +0000
commit3d47aa8ade2d449faa6e13b30c04ef0549920642 (patch)
tree0e8c6174bd8c573a497905590e7fec87837a545c /sbin/dhclient
parent4491e79ae60b2775b712b8c0872bf327842fd946 (diff)
'-alias' is deprecated. Use 'delete' in ifconfig statements.
ok beck@
Diffstat (limited to 'sbin/dhclient')
-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