[ale] Am I Linux?
Bob's ALE Mail
transam at cavu.com
Wed Dec 11 23:16:13 EST 1996
An easy for a csh script to tell if it's running under Linux:
if ( -e /etc/lilo || -e /sbin/lilo ) then
One also could test for the existence of /etc/version and grep for Linux in
it. With the inappropriate syntax this could be used for other shells too.
Bob Toxen
bob at cavu.com
transam at cavu.com [ALE]
http://www.mindspring.com/~cavu
Fly-By-Day Consulting, Inc.
"Venimus, Vidimus, Dolavimus" (We came, we saw, we hacked)
More information about the Ale
mailing list