[arch-general] [PATCH 42/48] Load conf files in a loop instead of one at a time.

Thomas Bächler thomas at archlinux.org
Fri Jul 16 08:04:48 EDT 2010


Am 30.06.2010 23:47, schrieb Victor Lowther:
> ---
>  network |   11 +++--------
>  1 files changed, 3 insertions(+), 8 deletions(-)
> 
> diff --git a/network b/network
> index 977e81e..242acc3 100755
> --- a/network
> +++ b/network
> @@ -3,14 +3,9 @@
>  . /etc/rc.conf
>  . /etc/rc.d/functions
>  
> -# wireless settings
> -[ -f /etc/conf.d/wireless ] && . /etc/conf.d/wireless
> -# ethernet bonding settings
> -[ -f /etc/conf.d/bonding ] && . /etc/conf.d/bonding
> -# bridge settings
> -[ -f /etc/conf.d/bridges ] && . /etc/conf.d/bridges
> -# dhcpcd settings
> -[ -f /etc/conf.d/dhcpcd ] && . /etc/conf.d/dhcpcd
> +for s in wireless bonding bridges dhcpcd; do
> +    [[ -f /etc/conf.d/$s ]] && . "/etc/conf.d/$s"
> +done
>  
>  ifup()
>  {

ACKed.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20100716/52e15cc6/attachment.bin>


More information about the arch-general mailing list