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)?