From owner-freebsd-current Mon Apr 2 8:18:46 2001 Delivered-To: freebsd-current@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 01E0537B718 for ; Mon, 2 Apr 2001 08:18:44 -0700 (PDT) (envelope-from danny@cs.huji.ac.il) Received: from sexta.cs.huji.ac.il ([132.65.16.13] ident=exim) by cs.huji.ac.il with esmtp (Exim 3.22 #1) id 14k66G-0004Y6-00; Mon, 02 Apr 2001 17:18:36 +0200 Received: from localhost ([127.0.0.1] helo=sexta.cs.huji.ac.il ident=danny) by sexta.cs.huji.ac.il with esmtp (Exim 3.15 #1) id 14k66F-0001ll-00; Mon, 02 Apr 2001 17:18:35 +0200 X-Mailer: exmh version 2.2 06/23/2000 with nmh-0.24 To: Brian Dean Cc: Falco , Mathew KANNER , Matt Dillon , freebsd-current@FreeBSD.ORG Subject: Re: new rc.diskless{1,2} files In-reply-to: Your message of Sun, 1 Apr 2001 23:15:36 -0400 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 02 Apr 2001 17:18:35 +0200 From: Danny Braniss Message-Id: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010401231536.F486@vger.bsdhome.com>you write: }I've found that one can reduce a lot of common file duplication by }reversing that logic, going after "default" first, then }"network-specific", finally followed by "host-specific" files: } } if [ -d /conf/default/etc/ ]; then } cp -Rp /conf/default/etc/* /conf/etc } fi } } if [ -d /conf/${bootp_ipbca} ] ; then } cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc } fi } } if [ -d /conf/${bootp_ipa} ] ; then } cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc } fi } i like it!, since that's almost what i did here, but this morning couldn't remember why :-) as to using local disks, all our 'diskless' actualy have disk, im still in the design stage, since some of the have other os installed, some want to use the disk as scratch, some may need big swap ... danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message