[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tell Ubuntu and Debian apart in a shell script ...



Hi again,

> Can you look in /etc/issue (or maybe /etc/debian_version)?
As a matter of fact that was my first naive method. It does work for Debian (unless changed by someone), but on Ubuntu this always contains the same string as far as I saw "squeeze/sid".

However, it could be that I'm on to something with:

(which lsb_release > /dev/null && `which lsb_release` --id)|awk '{print $3}'

... does not work on older systems which don't have lsb_release, though.


Still looking,

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

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


Reply to: