It may sound silly, but you said that you removed the two elif's; did you also remove the "distribution=" lines? If not, the script will improperly set your distribution. You could change this:
Code:
# Check for GNU/Linux distributions
if [ -f /etc/slackware-version ]; then
distribution="slackware"
elif [ -f /etc/SuSE-release -o -f /etc/UnitedLinux-release ]; then
distribution="suse"
elif [ -f /etc/gentoo-release ]; then
distribution="gentoo"
elif [ -f /etc/debian_version ]; then
distribution="debian"
elif [ -f /etc/mandrake-release ]; then
distribution="mandrake"
elif [ -f /etc/redhat-release -a `grep -c "Red Hat" /etc/redhat-release 2>/dev/null` -ne 0 ]; then
distribution="redhat"
elif [ -f /etc/fedora-release -a `grep -c "Fedora" /etc/fedora-release 2>/dev/null` -ne 0 ]; then
distribution="fedora"
else
distribution="unknown"
fi
To this:
Code:
# Check for GNU/Linux distributions
if [ -f /etc/slackware-version ]; then
distribution="slackware"
else
distribution="unknown"
fi
I don't know why you received the error, but there shouldn't be any problem changing the script. You'll also want to check and make sure that /etc/slackware-version still exists on your system. I'm just guessing here, but you might also want to check that /etc/redhat-release and /etc/fedora-release do'nt exist on your system. I don't know why they would, but if you are having trouble with those two lines, that would be something to look at.
Hope that helps,