From owner-freebsd-small Fri Nov 29 10:56:38 2002 Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BC7137B401 for ; Fri, 29 Nov 2002 10:56:36 -0800 (PST) Received: from mx1.purplecat.net (mx1.purplecat.net [208.133.44.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE71A43EB2 for ; Fri, 29 Nov 2002 10:56:35 -0800 (PST) (envelope-from peter@skyrunner.net) Received: (qmail 72465 invoked from network); 29 Nov 2002 18:56:38 -0000 Received: from unknown (HELO micron) (208.150.25.130) by mx1.skyrunner.net with SMTP; 29 Nov 2002 18:56:38 -0000 From: "Peter Brezny" To: "Bruce R. Montague" Cc: Subject: RE: disabling the request for hostname and ipaddress. Date: Fri, 29 Nov 2002 13:56:29 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200211291817.gATIHJA00494@mail.cruzio.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce, Thanks a lot for the complete description, until now, I didn't realize that things were pulled in from mfs_tree as well. What I wound up doing was putting a local copy of rc1 in my build's etc dir, then modifying the rc1 to exclude: #find_system_id # Set $main_eth $main_if #set_main_interface # Set ${hostname} and ${ifconfig_${main_if}} #set_all_interfaces # Set ${ifconfig_${if}} for other interfaces. It seems to work, I haven't broken anything big by doing this have I? I also then created an rc.local that manually configures my interfaces and runs the sysctl variables I need to cerate the bridge group, as well as a custom firewall to use dummynet on that bridge. Thanks again for your help! Peter Brezny Skyrunner.net -----Original Message----- From: Bruce R. Montague [mailto:brucem@mail.cruzio.com] Sent: Friday, November 29, 2002 1:17 PM To: freebsd-small@FreeBSD.ORG Cc: peter@skyrunner.net Subject: Re: disabling the request for hostname and ipaddress. Re: > How do you configure picobsd not to ask for a hostname and ipaddress? The contents of your running /etc are formed from the picobsd build-time contents of: /usr/src/release/picobsd/mfs_tree/etc As overridden/merged with the contents of: /usr/src/release/picobsd/floppy.tree/etc As overridden/merged with the contents of your picobsd config dir's floppy.tree/etc In the "bridge" config there is no "floppy.tree/etc" (although there is a "floppy.tree.exclude" _file_ which excludes files from the two default dirs. The default boot-time rc file is in /usr/src/release/picobsd/mfs_tree/etc/rc At the end of this "rc" script, it pulls in: /usr/src/release/picobsd/floppy.tree/etc/rc1 which invokes (executes) /usr/src/release/picobsd/floppy.tree/etc/rc.conf.defaults and then calls "set_main_interface", defined in "rc.conf.defaults". This rc.conf file is _not_ the same as for regular FreeBSD (it is much smaller). Go down toward the bottom or "rc.conf.defaults" and find routine "read_address()". This is where you are prompted for the hostname and IP address. You can customize the /etc/rc contents of your picobsd to meet your needs by adding in your config dir your own "floppy.tree/etc". See the /usr/src/release/picobsd/router and other configs (dial, etc) for examples of this. - bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message