FreeBSD Bugzilla – Attachment 6581 Details for
Bug 14810
[PATCH] initialising multiple interfaces through DHCP does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.61 KB, created by
hibma
on 1999-11-10 10:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
hibma
Created:
1999-11-10 10:40:01 UTC
Size:
1.61 KB
patch
obsolete
>--- /etc/rc.network.orig Tue Nov 9 17:01:34 1999 >+++ /etc/rc.network Tue Nov 9 18:04:12 1999 >@@ -77,11 +77,11 @@ > ;; > esac > >+ dhcp_interfaces="" > for ifn in ${network_interfaces}; do >- showstat=false > if [ -r /etc/start_if.${ifn} ]; then > . /etc/start_if.${ifn} >- showstat=true >+ eval showstat_$ifn=1 > fi > > # Do the primary ifconfig if specified >@@ -92,15 +92,22 @@ > '') > ;; > [Dd][Hh][Cc][Pp]) >- ${dhcp_program:-/sbin/dhclient} ${dhcp_flags} ${ifn} >- showstat=true >+ # DHCP inits are done all in one go below >+ dhcp_interfaces="$dhcp_interfaces $ifn" >+ eval showstat_$ifn=1 > ;; > *) > ifconfig ${ifn} ${ifconfig_args} >- showstat=true >+ eval showstat_$ifn=1 > ;; > esac >+ done >+ >+ if [ ! -z "${dhcp_interfaces}" ]; then >+ ${dhcp_program:-/sbin/dhclient} ${dhcp_flags} ${dhcp_interfaces} >+ fi > >+ for ifn in ${network_interfaces}; do > # Check to see if aliases need to be added > # > alias=0 >@@ -108,7 +115,7 @@ > eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} > if [ -n "${ifconfig_args}" ]; then > ifconfig ${ifn} ${ifconfig_args} alias >- showstat=true >+ eval showstat_$ifn=1 > alias=`expr ${alias} + 1` > else > break; >@@ -120,14 +127,15 @@ > eval ifconfig_args=\$ifconfig_${ifn}_ipx > if [ -n "${ifconfig_args}" ]; then > ifconfig ${ifn} ${ifconfig_args} >- showstat=true >+ eval showstat_$ifn=1 > fi >+ done > >- case ${showstat} in >- true) >+ for ifn in ${network_interfaces}; do >+ eval showstat=\$showstat_${ifn} >+ if [ ! -z ${showstat} ]; then > ifconfig ${ifn} >- ;; >- esac >+ fi > done > > # Warm up user ppp if required, must happen before natd.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14810
: 6581 |
6582