🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.admin
Article #27

Re: How would a script recognize Linux?

#27
From: Daniel Barlow
Date: Sat, 04 Mar 1995 18:16
29 lines
2033 bytes
In article <cmanD4w5uz.Hxw@netcom.com>,
	cman@netcom.com (cman) writes:
>With the kernels getting larger and larger, I don't think that you will 
>find many /mvlinux's. 

Or /vmlinux's, which is probably what you meant to say :-) In fact,
it's no longer possible on the 386 version to boot from an
uncompressed kernel image, at least without hacking the build process.

> I use /vmlinuz, indicating a compressed kernal 
>image.

I use /boot/zImage, and nothing so far has ever stopped working for
me.  This idea of guessing linux by looking at the files in the root
dir seems a bit silly --- some people using umsdos probably don't
even *have* a kernel on their linux partition.

> uname() conforms to SVID, AT&T, POSIX, X/OPEN, and even SunOS 
>4.1.3 returns SunOS.  SCO is somewhere in neverneverland.

uname() is the way to go.  Anyone calling their SCO box `Linux'
probably deserves to lose ...

Daniel
-- 
xuuah@csv.warwick.ac.uk // Daniel Barlow // daniel.barlow@sjc.ox.ac.uk

``Our single posting of 6,000 was a drop in a huge bucket'' 
				-- Canter & Siegel, to the Tennessee Bar
Technical Details
Message-ID: <3jaapb$1qi@holly.csv.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!warwick!not-for-mail
References: <3il1e2$6fq@usenetw1.news.prodigy.com> <5718@artcom0.north.de> <3j55np$8ee@usenetw1.news.prodigy.com> <cmanD4w5uz.Hxw@netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 100df9,650d05e30da3de92
X-Google-Attributes: gid100df9,public
X-Google-Thread: 1122ea,27188ece54367802
X-Google-Attributes: gid1122ea,public
X-Google-ArrivalTime: 1995-03-04 23:13:04 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!warwick!not-for-mail
From: xuuah@csv.warwick.ac.uk (Daniel Barlow)
Newsgroups: comp.os.linux.admin,biz.sco.general
Subject: Re: How would a script recognize Linux?
Date: 4 Mar 1995 18:16:11 -0000
Organization: University of Warwick, Coventry, UK
Lines: 29
Message-ID: <3jaapb$1qi@holly.csv.warwick.ac.uk>
References: <3il1e2$6fq@usenetw1.news.prodigy.com> <5718@artcom0.north.de> <3j55np$8ee@usenetw1.news.prodigy.com> <cmanD4w5uz.Hxw@netcom.com>
NNTP-Posting-Host: holly-fddi.csv.warwick.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit