|
|
|
@ -7,7 +7,7 @@ DIST=""
|
|
|
|
|
|
|
|
|
|
if [ -r /etc/redhat-release ]; then
|
|
|
|
|
read a b c d e f g < /etc/redhat-release
|
|
|
|
|
elif [ -r /etc/SuSE-release ]; then
|
|
|
|
|
elif [ -r /etc/SuSE-release ] || grep -qw "ID=opensuse" "/etc/os-release"; then
|
|
|
|
|
a="opensuse"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
@ -39,7 +39,11 @@ case $a in
|
|
|
|
|
Fedora*) FEDORA="${c}"; DIST=".fc${FEDORA}";;
|
|
|
|
|
# Opensuse
|
|
|
|
|
opensuse)
|
|
|
|
|
DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)"
|
|
|
|
|
if [ -r "/etc/SuSE-release" ]; then
|
|
|
|
|
DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)"
|
|
|
|
|
else
|
|
|
|
|
DIST=".oss"
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
# PCLinuxOS
|
|
|
|
|
PCLinuxOS) PCLINUXOS="${c}"; DIST=".pclos${c}";;
|
|
|
|
|