Re: [PATCH 42/48] Load conf files in a loop instead of one at a time.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux