Re: [RFC] ifconfig description support in rc.d

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: pluknet
Date: Friday, August 27, 2010 - 2:17 am

On 27 August 2010 00:09, Doug Barton <dougb@freebsd.org> wrote:

Xin Li helped me with updating rc.conf.5 (thanks!).
It's included in attached patch.


This was blindly copy&pasted after ifnet_rename().
So, it makes sense probably to change test expression there as well.
[see ifnet_rename() proposed change below inline]
This change to ifnet_rename() is not included in attached patch
to not complicate things unnecessarily for now.

Index: etc/network.subr
===================================================================
--- etc/network.subr    (revision 211280)
+++ etc/network.subr    (working copy)
@@ -1179,7 +1179,7 @@
        # ifconfig_IF_name
        for _if in `ifconfig -l`; do
                _ifname=`get_if_var $_if ifconfig_IF_name`
-               if [ ! -z "$_ifname" ]; then
+               if [ -n "$_ifname" ]; then
                        ifconfig $_if name $_ifname
                fi
        done

-- 
wbr,
pluknet
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] ifconfig description support in rc.d, pluknet, (Thu Aug 26, 12:53 pm)
Re: [RFC] ifconfig description support in rc.d, Doug Barton, (Thu Aug 26, 1:09 pm)
Re: [RFC] ifconfig description support in rc.d, Xin LI, (Thu Aug 26, 2:09 pm)
Re: [RFC] ifconfig description support in rc.d, pluknet, (Fri Aug 27, 1:36 am)
Re: [RFC] ifconfig description support in rc.d, pluknet, (Fri Aug 27, 2:17 am)
Re: [RFC] ifconfig description support in rc.d, Sergey Kandaurov, (Sat Oct 9, 11:29 pm)
Re: [RFC] ifconfig description support in rc.d, Garrett Cooper, (Sun Oct 10, 10:23 am)
Re: [RFC] ifconfig description support in rc.d, jhell, (Sun Oct 10, 10:30 pm)
Re: [RFC] ifconfig description support in rc.d, Garrett Cooper, (Sun Oct 10, 10:34 pm)
Re: [RFC] ifconfig description support in rc.d, jhell, (Sun Oct 10, 10:45 pm)
Re: [RFC] ifconfig description support in rc.d, Hiroki Sato, (Mon Oct 11, 3:29 am)
Re: [RFC] ifconfig description support in rc.d, Sergey Kandaurov, (Fri Nov 19, 3:55 am)
Re: [RFC] ifconfig description support in rc.d, Garrett Cooper, (Fri Nov 19, 10:43 am)