perhaps the existance of /etc/redhat-release?  However, do you actually need
to
determine whether the system is redhat, or do you need to look for specific
characteristics
of the system?  It seems that it would make much more sense to look for
things such as
/etc/sysconfig/whatever or /etc/rc.d/init.d/ or /sbin/chkconfig or whatever
it is that
is redhat-specific that you are actually using.  This way distribution forks
and roll your
own distros that take from several will work etc...  Which is why autoconf
is used on much
opensource software rather than asking you which OS you have.

-joe

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jesse Noller
> Sent: Tuesday, February 20, 2001 11:08 AM
> To: '[EMAIL PROTECTED]'
> Subject: System Type
>
>
>
>
>
> I have a quick question for everyone, I have to write an
> installation script
> for a piece of software on linux, however, this product is supported on
> multiple distribution types. I need some definitive way of determining a
> SYSTYPE variable to the tune of
>
>       cat /path/to/item | grep Redhat
>
>
>       Etc...
>
> The distributions do handle things differently, but some common piece must
> be shared. I was originally figuring on doing a cat on /proc/version,
> however, this only greps out the current kernel version, and on machines
> with custom kernels, is basically useless.
>
>
> Any help would be nice
>
>
> -Jesse Noller
> Linux Systems Lead
> Allaire Corp
>
>
>
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list
>



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to