On 08/25/2010 04:47 PM, Oliver Schneider wrote:
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

Can you look in /etc/issue (or maybe /etc/debian_version)?


--
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/4c75acdb.7020...@familyross.net

Reply via email to