Added support for Arch Linux
This commit is contained in:
parent
8360114895
commit
b42c72a541
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
general:
|
||||||
|
Added support for Arch Linux.
|
||||||
|
|
||||||
|
|
||||||
v0.95.12 22-May-2011
|
v0.95.12 22-May-2011
|
||||||
|
|
||||||
general:
|
general:
|
||||||
|
17
SETUP.sh
17
SETUP.sh
@ -110,6 +110,9 @@ if [ "$OSTYPE" = "Linux" ]; then
|
|||||||
elif [ -f /etc/gentoo-release ]; then
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
DISTNAME="Gentoo"
|
DISTNAME="Gentoo"
|
||||||
DISTVERS=$( cat /etc/gentoo-release | awk '{ print $5 }' )
|
DISTVERS=$( cat /etc/gentoo-release | awk '{ print $5 }' )
|
||||||
|
elif [ -f /etc/arch-release ]; then
|
||||||
|
DISTNAME="Arch Linux"
|
||||||
|
DISTVERS="N/A"
|
||||||
else
|
else
|
||||||
DISTNAME="Unknown"
|
DISTNAME="Unknown"
|
||||||
fi
|
fi
|
||||||
@ -136,8 +139,8 @@ log "+" "Detected \"${OSTYPE}\" (${HOSTTYPE}) \"${DISTNAME}\" version \"${DISTVE
|
|||||||
if [ "$DISTNAME" = "Unknown" ]; then
|
if [ "$DISTNAME" = "Unknown" ]; then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
Your are trying to install MBSE BBS on $OSTYPE system, however
|
Your are trying to install MBSE BBS on a $OSTYPE system, however
|
||||||
the distribution is unknown.
|
that distribution is unknown.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
log "!" "Aborted, OS is $OSTYPE, distribution is unknown"
|
log "!" "Aborted, OS is $OSTYPE, distribution is unknown"
|
||||||
@ -199,6 +202,16 @@ if [ "$DISTNAME" = "Ubuntu" ]; then
|
|||||||
fi
|
fi
|
||||||
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
|
clear
|
||||||
|
|
||||||
if [ "$OSTYPE" = "Linux" ]; then
|
if [ "$OSTYPE" = "Linux" ]; then
|
||||||
|
Reference in New Issue
Block a user