[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[LI] identify the distro using script



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

i was planning to create a script which could do config of the network,
squid proxy or dns caching and ip forwarding.

atul what do you suggest squid proxy or dns-caching-server with ip
forwarding -- it is for cyber cafe.
(some odd 15 machines Win95 will be the clients).



--------------------------------------------------------------------
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.