From owner-freebsd-small Tue Jul 3 1:40:50 2001 Delivered-To: freebsd-small@freebsd.org Received: from oneplusone.ch (oneplusone.ch [212.55.208.170]) by hub.freebsd.org (Postfix) with ESMTP id E013437B409 for ; Tue, 3 Jul 2001 01:40:46 -0700 (PDT) (envelope-from ast@marabu.ch) Received: (from uucp@localhost) by oneplusone.ch (8.11.3/8.11.3) with UUCP id f63602i18533; Tue, 3 Jul 2001 08:00:02 +0200 (MEST) (envelope-from ast@marabu.ch) Received: from marabu.marabu.ch (marabu.marabu.ch [192.168.21.3]) by marabu.ch (8.9.3/2000102801) with ESMTP id HAA04178; Tue, 3 Jul 2001 07:56:05 +0200 (CEST) (envelope-from ast@marabu.ch) Received: by marabu.marabu.ch (8.7.5/20001028-ast-8.3) id HAA03735; Tue, 3 Jul 2001 07:56:02 +0200 (CEST) Message-Id: <200107030556.HAA03735@marabu.marabu.ch> MIME-Version: 1.0 (NeXT Mail 3.3 v124.8483.6) Content-Type: text/plain In-Reply-To: <3B3CD421.EE4DF32D@lodgenet.com> X-Nextstep-Mailer: Mail 3.3 (Enhance 2.0b6) Received: by NeXT.Mailer (1.124.8483.6) From: Adrian Steinmann Date: Tue, 3 Jul 2001 07:56:00 +0200 To: Lee McKenna Subject: Re: busybox for picobsd Cc: freebsd-small@FreeBSD.ORG References: <3B3CD421.EE4DF32D@lodgenet.com> X-Organization: Steinmann Consulting, Apollostrasse 21, 8032 Zurich X-Phone-Numbers: Switzerland, Tel +41 1 380 30 83 Fax +41 1 380 30 85 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 I use sash (see ports/shells/sash) and then this generator (/mini is where I put my local small stuff) # craft a small shell script for sash builtin commands { echo '#!/bin/sh -'; echo "eval exec /mini/sash -c \\'-\`echo \$0|/mini/sed -e 's/[^\/]*\///g'\` \$@\'"; } > sash_builtin chmod 755 sash_builtin for cmd in \ chgrp chmod chown cmp cp dd ed file find grep gunzip gzip kill \ ln ls mkdir mknod more mv pwd rm rmdir sum sync touch umount do ln sash_builtin $cmd done It's a one-line shell script for *all* the relevant sash commands. Almost as good as busybox, and a lot smaller! Adrian You wrote: Has anyone successfully ported busybox ( http://busybox.lineo.com )to FreeBSD? I know about tinyware, but busybox appears to be a more comprehensive toolkit, except it currently only works under linux -- I've tried to make it on FreeBSD 4.3 and unfortunately I'm not a programmer so I cant fix it... --Lee lee@lodgenet.com< To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message