The installinit script now recognizes Fedora Core.

This commit is contained in:
Michiel Broek 2005-09-30 18:50:09 +00:00
parent 0e4dd992ee
commit 7f7dfe80da
3 changed files with 13 additions and 5 deletions

View File

@ -3,6 +3,9 @@ $Id$
v0.71.7 12-Sep-2005
script:
The installinit script now recognizes Fedora Core.
v0.71.6 02-Sep-2005 - 12-Sep-2005

View File

@ -3,7 +3,7 @@
# chkconfig: 345 95 05
# description: Starts and stops MBSE BBS.
#
# For RedHat, E-Smith and Mandrake SYSV init style.
# For RedHat, Fedora Core, E-Smith and Mandrake SYSV init style.
# $Id$
#
# Source function library.

View File

@ -72,7 +72,12 @@ if [ "$OSTYPE" = "Linux" ]; then
if [ -f /etc/redhat-release ]; then
DISTNAME="RedHat"
if [ -z "`grep e-smith /etc/redhat-release`" ]; then
if [ -z "`grep Fedora /etc/redhat-release`" ]; then
DISTVERS=`cat /etc/redhat-release | awk '{ print $5 }'`
else
DISTVERS=`cat /etc/redhat-release | awk '{ print $4 }'`
DISTNAME="Fedora Core"
fi
else
DISTVERS=`cat /etc/redhat-release | awk '{ print $13 }' | tr -d \)`
fi
@ -195,11 +200,11 @@ fi
#--------------------------------------------------------------------------
#
# Adding scripts for RedHat, e-smith and Mandrake
# Adding scripts for RedHat, Fedora Core, e-smith and Mandrake
#
if [ "$DISTNAME" = "RedHat" ] || [ "$DISTNAME" = "Mandrake" ]; then
if [ "$DISTNAME" = "RedHat" ] || [ "$DISTNAME" = "Mandrake" ] || [ "$DISTNAME" = "Fedora Core" ]; then
log "+" "Adding RedHat/E-Smith/Mandrake SystemV init scripts"
log "+" "Adding RedHat/Fedora/E-Smith/Mandrake SystemV init scripts"
DISTINIT="/etc/rc.d/init.d/mbsed"
#
# Extra tests are added for the RedHat e-smith server distribution,