Subject: bin/4807: dhclient-script fails when reason == TIMEOUT
To: None <gnats-bugs@gnats.netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: netbsd-bugs
Date: 01/11/1998 23:09:30
>Number: 4807
>Category: bin
>Synopsis: dhclient-script fails when reason == TIMEOUT
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 11 20:20:01 1998
>Last-Modified:
>Originator: John Kohl
>Organization:
NetBSD Kernel Hackers `R` Us
>Release: NetBSD-1.3
>Environment:
System: NetBSD kolvir.arlington.ma.us 1.3 NetBSD 1.3 (KOLVIR) #0: Fri Jan 9 19:01:20 EST 1998 jtk@kolvir.arlington.ma.us:/u4/sandbox/src/sys/arch/i386/compile/KOLVIR i386
>Description:
The dhclient NetBSD script fails when the reason is TIMEOUT;
there's a missing "fi" in the source.
>How-To-Repeat:
run dhclient on a network with no dhcp server; watch it
complain.
>Fix:
*** /usr/src/usr.sbin/dhcp/client/scripts/netbsd Sat Nov 22 07:32:23 1997
--- netbsd Sun Jan 11 23:09:08 1998
***************
*** 155,160 ****
--- 155,161 ----
mv /etc/resolv.conf.std /etc/resolv.conf
exit 0
fi
+ fi
ifconfig $interface inet -alias $new_ip_address $medium
for router in $old_routers; do
route delete default $router >/dev/null 2>&1
>Audit-Trail:
>Unformatted: