From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 25 00:51:19 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3A1F16A4DF; Fri, 25 Aug 2006 00:51:18 +0000 (UTC) (envelope-from donald.creel@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id B46F343D46; Fri, 25 Aug 2006 00:51:18 +0000 (GMT) (envelope-from donald.creel@verizon.net) Received: from [63.17.160.159] by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J4J001EN3OJ5V22@vms046.mailsrvcs.net>; Thu, 24 Aug 2006 19:50:45 -0500 (CDT) Date: Thu, 24 Aug 2006 19:51:18 +0000 From: donxc To: freebsd-hackers@freebsd.org, matteo@freebsd.org, olli@lurza.secnetix.de Message-id: <44EE0336.2080508@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050420 X-Mailman-Approved-At: Fri, 25 Aug 2006 01:21:40 +0000 Cc: Subject: Re: About loader(8) forth X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 00:51:19 -0000 Matteo Riondato wrote: > I'm trying to understand how the loader forth works to see if it's > possible to develop something similar to knoppix boot menu and use it > for FreeSBIE. > Just to have a try, I replaced /boot/beastie.4th with file a > containing only: > > ." Welcome to FreeSBIE" > exit Oliver Fromme wrote: >I've modified FreeBSD's standard beastie.4th in the past to >implement various things, although I'm not that much of a >FICL expert either ... But since nobody else replied, I >give it a try. No expert here either but I will add a little. >I think putting "exit" directly into beastie.4th (which is >included by loader.rc) is not a good idea. You should use >"exit" only within a function that you define in beastie.4th >and then call that function from loader.rc, just like the >standard files do. Or from loader.conf. For Matteo's simple experiment, ( display the FreeSBIE prompt then exit to the loader prompt), the exit function is already built in to the first test of the "beastie-start" definition in the beastie.4th file. It can be called by adding line to loader.conf as follows: beastie_disable="YES" Then, FreeSBIE prompt, .( Welcome to FreeSBIE) can be added to loader.rc the line after the " start " line. If you replace the original beastie.4th and loader.rc (with the prompt added)files, you should have that part of your project behind you. Good luck on the knoppix menu, I have never seen it. >If you're looking for documentation, please have a look at >http://ficl.sf.net/ which also has links to several FORTH >primers and tutorials. Indeed the first of the links points >to a tutorial by J.V.Noble which is easy to read and quite >good. Nice link, thanks. Regards, Don Creel