From a42b8ec5810b7104002ef2c75c447224be2048cb Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 23 May 2011 15:29:26 +0200 Subject: [PATCH] Added support for Arch Linux --- ChangeLog | 4 ++++ SETUP.sh | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 657d7419..d6ae528e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ + general: + Added support for Arch Linux. + + v0.95.12 22-May-2011 general: diff --git a/SETUP.sh b/SETUP.sh index ce0845f1..af91f9ce 100644 --- a/SETUP.sh +++ b/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