Is something on the lines of:

cat /etc/apt/sources.list|grep '^deb '|grep 'http://security\.'|head -n 1|grep 
-o 'debian|ubuntu'


a safe idea or does it already make too many assumptions?

Otherwise, what methods do you use to tell them apart from the shell?


Thanks,

// Oliver
-- 
---------------------------------------------------
DDKWizard and DDKBUILD: <http://ddkwizard.assarbad.net>

Trunk (potentially unstable) version: 
<http://ddkwizard.assarbad.net/trunk/ddkbuild.cmd>


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100825234727.45...@gmx.net

Reply via email to