Commit 913e60e3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: grep version from /etc/slackware-version (thanks, bormant)

parent 31c15072
...@@ -118,11 +118,7 @@ elif distro mopslinux-version ; then ...@@ -118,11 +118,7 @@ elif distro mopslinux-version ; then
fi fi
elif distro slackware-version ; then elif distro slackware-version ; then
DISTRIB_ID="Slackware" DISTRIB_ID="Slackware"
if has 10.2 ; then DISTRIB_RELEASE="10.2" DISTRIB_RELEASE="$(grep -Eo [0-9]+\.[0-9]+ $DISTROFILE)"
elif has 11 ; then DISTRIB_RELEASE="11"
elif has 11.1 ; then DISTRIB_RELEASE="11.1"
elif has 12 ; then DISTRIB_RELEASE="12"
fi
elif distro arch-release ; then elif distro arch-release ; then
DISTRIB_ID="ArchLinux" DISTRIB_ID="ArchLinux"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment