Last fix to make NetBSD compile and install

This commit is contained in:
Michiel Broek
2002-01-11 22:56:52 +00:00
parent ee9238e1a5
commit 80b71dc43a
2 changed files with 12 additions and 7 deletions

View File

@@ -121,9 +121,13 @@ fi
if [ "$OSTYPE" = "FreeBSD" ]; then
DISTNAME="FreeBSD"
DISTVERS=`uname -r`
DISTVERS=${DISTVERS:0:3}
PW="pw "
fi
if [ "$OSTYPE" = "NetBSD" ]; then
DISTNAME="NetBSD"
DISTVERS=`uname -r`
fi
log "+" "Distribution $OSTYPE $DISTNAME $DISTVERS"
@@ -572,16 +576,16 @@ fi
#--------------------------------------------------------------------------
#
# Adding scripts for FreeBSD
# Adding scripts for FreeBSD and NetBSD
#
#
if [ "$DISTNAME" = "FreeBSD" ]; then
if [ "$DISTNAME" = "FreeBSD" ] || [ "$DISTNAME" = "NetBSD" ]; then
#
# FreeBSD init
#
DISTINIT="$MBSE_ROOT/etc/rc"
echo "Adding FreeBSD style MBSE BBS start/stop scripts"
log "+" "Adding FreeBSD style MBSE BBS start/stop scripts"
echo "Adding $DISTNAME style MBSE BBS start/stop scripts"
log "+" "Adding $DISTNAME style MBSE BBS start/stop scripts"
if [ -f /etc/rc.local ]; then
if [ "`grep MBSE /etc/rc.local`" = "" ]; then
log "+" "Adding $MBSE_ROOT/etc/rc to existing /etc/rc.local"