From owner-freebsd-small Mon Jun 18 15: 6:56 2001 Delivered-To: freebsd-small@freebsd.org Received: from fe040.worldonline.dk (fe040.worldonline.dk [212.54.64.205]) by hub.freebsd.org (Postfix) with SMTP id 11AF837B401 for ; Mon, 18 Jun 2001 15:06:52 -0700 (PDT) (envelope-from simon@nitro.dk) Received: (qmail 32025 invoked by uid 0); 18 Jun 2001 22:06:50 -0000 Received: from unknown (HELO bofh.bofh) (213.237.101.114) by fe040.worldonline.dk with SMTP; 18 Jun 2001 22:06:50 -0000 Date: Tue, 19 Jun 2001 00:06:56 +0200 (CEST) From: Simon Nielsen X-X-Sender: To: Josef Karthauser Cc: Subject: Re: PicoBSD patches In-Reply-To: <20010618111309.D728@tao.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Mon, 18 Jun 2001, Josef Karthauser wrote: > Here's a good place. Both Luigi and I read this list. Ok, then here are the first two minor ones.. I have also thought about making patches to change rc.conf to use a /etc/default/rc.conf like in FreeBSD 4.x instead of the current one with rc.conf.local - would that be something that would be considered to be included in the main PicoBSD? I will most likely make the changes for my self in any case.. Well on to the current patches.. Btw. they are made for 4-STABLE.. The first one makes the booting process not complain if some of the /fd directorys does not exist. The secound one makes the /stand/update script only try to call kget if the /mnt/boot/kernel.conf exists. This is my first patches to FreeBSD so any comments are very welcome. The patches can also be found on http://simon.nitro.dk/patch/picobsd/ --- picobsd.orig/mfs_tree/etc/rc Tue Feb 20 04:24:30 2001 +++ picobsd/mfs_tree/etc/rc Mon Jun 18 22:06:32 2001 @@ -3,6 +3,18 @@ # WARNING !!! We overwrite this file during execution with a new rc file. # Awful things happen if this file's size is > 1024B +install_fd_dirs() { + cd /fd + + for d in etc root; do + if [ -d ${d} ]; then + cp -Rp ${d} / + fi + done + + cd / +} + stty status '^T' trap : 2 trap : 3 @@ -13,11 +25,14 @@ dev="/dev/fd0c" # trap "echo 'Reboot interrupted'; exit 1" 3 + # Copy from MFS version of the files, and then from FS version. -cd /fd; cp -Rp etc root / ; cd / +install_fd_dirs echo "Reading /etc from ${dev}..." mount -o rdonly ${dev} /fd -cd /fd; cp -Rp etc root / ; cd / ; umount /fd +install_fd_dirs +umount /fd + cd /etc #rm files to stop overwrite warning for i in *; do Number two : --- picobsd.orig/mfs_tree/stand/update Thu Nov 30 23:55:08 2000 +++ picobsd/mfs_tree/stand/update Sun Jun 17 20:58:04 2001 @@ -32,8 +32,10 @@ done fi echo " Done." -echo -n "Updating kernel parameters... " -kget /mnt/boot/kernel.conf +if [ -r /mnt/boot/kernel.conf ]; then + echo -n "Updating kernel parameters... " + kget /mnt/boot/kernel.conf +fi umount /mnt cd ${pwd} echo " Done." Simon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message