Added support for Arch Linux
This commit is contained in:
parent
2fd1259866
commit
a42b8ec581
@ -1,4 +1,8 @@
|
||||
|
||||
general:
|
||||
Added support for Arch Linux.
|
||||
|
||||
|
||||
v0.95.12 22-May-2011
|
||||
|
||||
general:
|
||||
|
17
SETUP.sh
17
SETUP.sh
@ -110,6 +110,9 @@ if [ "$OSTYPE" = "Linux" ]; then
|
||||
elif [ -f /etc/gentoo-release ]; then
|
||||
DISTNAME="Gentoo"
|
||||
DISTVERS=$( cat /etc/gentoo-release | awk '{ print $5 }' )
|
||||
elif [ -f /etc/arch-release ]; then
|
||||
DISTNAME="Arch Linux"
|
||||
DISTVERS="N/A"
|
||||
else
|
||||
DISTNAME="Unknown"
|
||||
fi
|
||||
@ -136,8 +139,8 @@ log "+" "Detected \"${OSTYPE}\" (${HOSTTYPE}) \"${DISTNAME}\" version \"${DISTVE
|
||||
if [ "$DISTNAME" = "Unknown" ]; then
|
||||
cat << EOF
|
||||
|
||||
Your are trying to install MBSE BBS on $OSTYPE system, however
|
||||
the distribution is unknown.
|
||||
Your are trying to install MBSE BBS on a $OSTYPE system, however
|
||||
that distribution is unknown.
|
||||
|
||||
EOF
|
||||
log "!" "Aborted, OS is $OSTYPE, distribution is unknown"
|
||||
@ -199,6 +202,16 @@ if [ "$DISTNAME" = "Ubuntu" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$DISTNAME" = "Arch Linux" ]; then
|
||||
if [ ! -f /etc/xinetd.d/servers ]; then
|
||||
echo "*** You seem to be using Arch Linux but have not yet installed xinetd."
|
||||
echo " 'pacman -S xinetd' will install that for you. ***"
|
||||
echo "*** SETUP aborted ***"
|
||||
log "!" "Aborted, Arch Linux without xinetd package"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
clear
|
||||
|
||||
if [ "$OSTYPE" = "Linux" ]; then
|
||||
|
Reference in New Issue
Block a user