Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Dec 2008 18:40:27 +0100
From:      Jordi Espasa Clofent <jespasac@minibofh.org>
To:        freebsd-net@freebsd.org
Subject:   start_if.<interface> comments
Message-ID:  <493EAD8B.8040605@minibofh.org>

next in thread | raw e-mail | index | archive | help
Hi all,
I'm testing the use of /etc/start_if.<interface> instead the classical 
'ifconfig....' in /etc/rc.conf.  All seems work fine, but if I comment a 
line in /etc/start_if.<interface>, any interface is loaded by the system!

If I use

$ cat /etc/start_if.nfe0
/sbin/ifconfig $1 inet <public_ip> netmask 255.255.254.0
/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff
/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff

all works fine. But if I use

$ cat /etc/start_if.nfe0
/sbin/ifconfig $1 inet <public_ip> netmask 255.255.254.0
#/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff
/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff

any nfe0 associated interface is loaded!

I don't understand this issue, because according to rc.conf:

"If the /etc/start_if.<interface> file is present, it is read and 
executed by the sh(1) interpreter before configuring the interface as 
specified in the ifconfig_<interface> and ifconfig_<interface>_alias<n> 
variables."

and all of us know that sh(1) symbol of comment is always '#'

żIs it normal or is it a bug?

-- 
Thanks,
Jordi Espasa Clofent



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?493EAD8B.8040605>