Date: Wed, 8 May 2002 11:59:56 -0700 From: Neil Bliss <nbliss@mvista.com> To: freebsd-gnats-submit@freebsd.org Cc: neil@darlow.co.uk, audit@freebsd.org, nbliss@mvista.com Subject: Re: conf/30441: Can't set interface arguments for dhcp configured interfaces Message-ID: <20020508115956.I12891@dhcp117.mvista.com>
next in thread | raw e-mail | index | archive | help
Hey folks,
I just ran into this problem, and here's my proposed fix for it. Feel free to
incorporate it, or not. =)
Index: rc.network
===================================================================
RCS file: /home/ncvs/src/etc/rc.network,v
retrieving revision 1.134
diff -c -r1.134 rc.network
*** rc.network 2002/04/11 22:06:27 1.134
--- rc.network 2002/05/08 19:01:20
***************
*** 211,219 ****
case ${ifconfig_args} in
'')
;;
! [Dd][Hh][Cc][Pp])
# DHCP inits are done all in one go below
dhcp_interfaces="$dhcp_interfaces $ifn"
eval showstat_$ifn=1
;;
*)
--- 211,225 ----
case ${ifconfig_args} in
'')
;;
! [Dd][Hh][Cc][Pp])
# DHCP inits are done all in one go below
dhcp_interfaces="$dhcp_interfaces $ifn"
eval showstat_$ifn=1
;;
*)
--- 211,225 ----
case ${ifconfig_args} in
'')
;;
! *[Dd][Hh][Cc][Pp]*)
# DHCP inits are done all in one go below
dhcp_interfaces="$dhcp_interfaces $ifn"
+ # eat the DHCP token, and apply any other args.
+ ifconfig_args=`echo $ifconfig_args \
+ | sed s/[Dd][Hh][Cc][Pp]//`
+ if [ -n "${ifconfig_args}" ]; then
+ ifconfig ${ifn} ${ifconfig_args}
+ fi
eval showstat_$ifn=1
;;
*)
later,
Neil
--
Neil Bliss - Monta Vista Technical Support
Yow!-Zippy-says: I once decorated my apartment entirely in ten foot salad forks!!
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020508115956.I12891>
