At 3:17 PM +0100 11/19/02, René Scharfe wrote:
OK, perhaps this can be made even simpler. Put this into your /etc/rc.conf
and be done:

   # a hack to ease the configuration of machines with only one NIC
  _single=`ifconfig -l link`
  eval ifconfig_${_single}="inet 192.168.254.193 netmask 255.255.255.0"
  eval ifconfig_${_single}_alias0="inet 192.168.254.199 netmask 255.255.255.0"
One of the nice things about FreeBSD's rc.conf approach is that it moves a
large number of declarations out of assorted scripts, putting them into a
set of "declarative" files.  While these files technically contain code,
I've never seen them contain anything other than "var=val" statements.

I am therefore loathe to suggest any hack that starts putting executable
code in these files.  I am also concerned about making the system too
"brittle"; it should handle error conditions as cleanly as possible.  So,
while this is definitely a cute hack, I would not recommend it for general
use.

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to