![](https://secure.gravatar.com/avatar/1e6b06d67e97abea9a8fb143c7374c94.jpg?s=120&d=mm&r=g)
26 Jun
2013
26 Jun
'13
2:29 a.m.
Something like this?
if [ -f /etc/redhat-release ]; then VERSION=$(cat /etc/redhat-release | sed 's/.*release\ //' | sed 's/\ .*//') + if [ -f /etc/slackware-version ]; then + VERSION=$(cat /etc/slackware-version | cut -d" " -f2) else VERSION=$(lsb_release -sr 2>/dev/null)
-Laurens
On 2013-06-25 18:33, Adam Armstrong wrote:
Why no Slackware version?
Laurens Vets laurens@daemon.be wrote:
Following can be added to the distro script:
elif [ -f /etc/slackware-version ]; then
DISTRO="Slackware"
-Laurens