mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
15 lines
648 B
Diff
15 lines
648 B
Diff
|
--- ./usr/share/rear/lib/config-functions.sh.orig 2018-10-25 22:23:17.744613686 -0400
|
||
|
+++ ./usr/share/rear/lib/config-functions.sh 2018-10-25 22:23:26.675613303 -0400
|
||
|
@@ -57,6 +57,11 @@
|
||
|
minornr=$( grep -o -E '[0-9]+' /etc/system-release | head -2 | tail -1 )
|
||
|
OS_VERSION="$majornr.$minornr"
|
||
|
fi
|
||
|
+
|
||
|
+ if [[ -f /etc/slackware-version ]] ; then
|
||
|
+ OS_VENDOR=Slackware
|
||
|
+ OS_VERSION=$(cat /etc/slackware-version | sed -r -e 's/slackware\s*//i')
|
||
|
+ fi
|
||
|
fi
|
||
|
|
||
|
# If OS_VENDOR is still generic then use as last resource 'lsb_release' to find out
|