*BSD News Article 64483


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!qns3.qns.com!imci4!newsfeed.internetmci.com!news.mathworks.com!uhog.mit.edu!nntp.club.cc.cmu.edu!cantaloupe.srv.cs.cmu.edu!jmcc
From: jmcc@m5.vi.ri.cmu.edu (Jason Mcmullan)
Newsgroups: comp.os.linux.development.system,comp.unix.bsd.freebsd.misc
Subject: Re: Ideal filesystem
Followup-To: comp.os.linux.development.system,comp.unix.bsd.freebsd.misc
Date: 30 Mar 1996 20:05:50 GMT
Organization: Carnegie-Mellon University, School of Computer Science
Lines: 37
Message-ID: <4jk46u$3vv@cantaloupe.srv.cs.cmu.edu>
References: <4hptj4$cf4@cville-srv.wam.umd.edu> <3140C968.20699696@netcom.com> <4ilgto$861@floyd.sw.oz.au> <4j6if4$15gk@news.missouri.edu> <315834CD.7C4DA6C7@netcom.com> <4jeui7$f12@park.uvsc.edu>
NNTP-Posting-Host: m5.vi.ri.cmu.edu
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.os.linux.development.system:20195 comp.unix.bsd.freebsd.misc:16184


 I have a point of disagreement with Terry Lambetr here...

 Terry's major argument about the "files as directories" based file
filesystem is shell hashing - but why? Either you make the file
at the top of the executable's file structure the binary for the delivered
architecture, or you simply use a shell script like this:

---- cut here -----
#!/bin/sh

OS=`uname`
OSREV=`uname -r`

case "$OS" in
  Linux) if  [ -f /lib/ld-linux.so.1 ]; then
           BINARY=linux-elf
         else if [ -f /lib/ld.so.1 ]; then
           BINARY=linux-a.out
         else
           BINARY=not_found
         fi; fi; fi
         ;;
[other OS/bintype cases]
esac

exec $0/$BINARY
---- cut here ---

  Is this so hard????


--
Copyright 1995 Jason McMullan;  all rights reserved.

         Me: http://www.contrib.andrew.cmu.edu/~ezrec
  Linux GGI: http://www.contrib.andrew.cmu.edu/~ezrec/ggi.html