Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Choosing ordering of pseudo-interface config
On Tue, Dec 10, 2013 at 01:49:50PM +0700, Robert Elz wrote:
> [...]
> It turns out there's a simple mod hat can me made to rc.d/network
> that allows people to configure the order, which is ...
>
> --- network.orig 2013-12-10 08:33:37.000000000 +0700
> +++ network 2013-12-10 08:36:49.000000000 +0700
> @@ -205,12 +205,16 @@
> ifaces="$(/sbin/ifconfig -l)"
> if checkyesno auto_ifconfig; then
> tmp="$ifaces"
> + cftmp=
> for cloner in $(/sbin/ifconfig -C); do
> for int in /etc/ifconfig.${cloner}[0-9]*; do
> [ ! -f $int ] && break
> - tmp="$tmp ${int##*.}"
> + cftmp="$cftmp ${int}"
> done
> done
> + for int in $(/sbin/rcorder $cftmp); do
> + tmp="$tmp ${int#*.}"
> + done
> else
> tmp="$net_interfaces"
> fi
>
> That just runs rcorder on the /etc/ifconfig.* files for all the
> cloning interfaces. To that just add
>
> # PROVIDE: vlan0
> and
> # REQUIRE: vlan0
>
> in appropriate places in the ifconfig.vlan0 and ifconfig.bridge1 (in my
> case) files, and the order then becomes something that will work for me.
I like the idea ! I have the same issue on various systems, which I
solve using auto_ifconfig=NO and net_interfaces="...".
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index