- Support dhclient and dhclient_flags rc.conf variables.
- Start dhcp client if dhclient==YES.
This commit is contained in:
parent
8572695519
commit
61b6b3bfec
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: netstart,v 1.54 1999/03/02 23:10:17 abs Exp $
|
||||
# $NetBSD: netstart,v 1.55 1999/03/24 19:03:10 mellon Exp $
|
||||
# from: @(#)netstart 8.1 (Berkeley) 7/23/93
|
||||
|
||||
if [ -f /etc/rc.subr ]; then
|
||||
|
@ -179,6 +179,11 @@ if [ -n "$ppp_peers" ]; then
|
|||
echo "."
|
||||
fi
|
||||
|
||||
if checkyesno dhclient; then
|
||||
echo -n "starting dhcp client...";
|
||||
dhclient $dhclient_flags
|
||||
fi
|
||||
|
||||
if [ -s /etc/netstart.local ]; then
|
||||
. /etc/netstart.local
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue