From owner-freebsd-questions Thu Jun 13 23:52:40 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA12617 for questions-outgoing; Thu, 13 Jun 1996 23:52:40 -0700 (PDT) Received: from twwells.com (twwells.com [199.79.159.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA12610 for ; Thu, 13 Jun 1996 23:52:37 -0700 (PDT) Received: by twwells.com (Smail3.1.29.1 #8) id m0uUSkF-0001BVC; Fri, 14 Jun 96 02:52 EDT To: freebsd-questions@freebsd.org From: bill@twwells.com (T. William Wells) Subject: trivial netstart suggestion Date: 14 Jun 1996 02:52:32 -0400 Lines: 25 Message-ID: <4pr27g$t71@twwells.com> NNTP-Posting-Host: localhost.twwells.com Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In one of my setups, I want to arrange that all interface addresses are assigned before named and other daemons are called. Evidently, if I'm using interface ed0, /etc/start_if.ed0 will be run before doing the ifconfig using the sysconfig parameters. For what I want to do, this means putting all the ed0 interface configuration in that file. No big deal; I can just leave the ifconfig_ed0 blank and it'll do what I want. However, it'll then report the interface twice in the bootup, which is a trivial annoyance. To eliminate it, how about instead of: ifconfig ${ifn} ${ifconfig_args} putting this: if [ -z ${ifconfig_args} ]; then echo Missing sysconfig entry for ${ifn}. elif [ ${ifconfig_args} != NO ]; then ifconfig ${ifn} ${ifconfig_args} fi That'll also get the boot script to complain if one of the ifconfig_ values is missing.