diff options
Diffstat (limited to 'sbin/dhclient/dhclient-script')
-rw-r--r-- | sbin/dhclient/dhclient-script | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index 640572b37c5..7133d841e15 100644 --- a/sbin/dhclient/dhclient-script +++ b/sbin/dhclient/dhclient-script @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: dhclient-script,v 1.4 2004/04/18 18:22:20 deraadt Exp $ +# $OpenBSD: dhclient-script,v 1.5 2004/05/05 23:08:54 deraadt Exp $ # # Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org> # @@ -49,7 +49,8 @@ delete_old_alias() { add_new_alias() { if [ -n "$alias_ip_address" ]; then - ifconfig $interface inet alias $alias_ip_address netmask $alias_subnet_mask + ifconfig $interface inet alias $alias_ip_address netmask \ + $alias_subnet_mask route add $alias_ip_address 127.0.0.1 fi } |