summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient-script
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-05 23:08:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-05 23:08:55 +0000
commit8f6a4f2e535871b3eafb365b6ebe1de3a4e5bc57 (patch)
treee5bf4e31f36ee2f09e14dada9bf5e8a48b1fd8d2 /sbin/dhclient/dhclient-script
parent7ec49bfd42545190857c962fc7ffb16d4710d1ef (diff)
line wrap
Diffstat (limited to 'sbin/dhclient/dhclient-script')
-rw-r--r--sbin/dhclient/dhclient-script5
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
}