[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] identify the distro using script
On Sat, Nov 20, 1999 at 06:23:30PM +0530, DigitelNet Systems wrote:
> how can i make sure about the distribution from a sh script
>
> will this work always
>
> if [ -d /etc/rc.d/init.d ] ; then
> # confirm RedHat
> elif [-f /etc/rc.d/rc.modules ] ; then
> # confirm Slackware
> fi
>
Look in the archives of comp.lang.python - someone was writing a
python module, that would do just this.
-Arun
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.