Small modifications for FreeBSD
This commit is contained in:
parent
ee0f4db63d
commit
3969db7a22
2
SETUP.sh
2
SETUP.sh
@ -232,7 +232,7 @@ if [ "$OSTYPE" = "Linux" ]; then
|
|||||||
useradd -c "MBSE BBS Admin" -d $MHOME -g bbs -G uucp -m -s /bin/bash mbse
|
useradd -c "MBSE BBS Admin" -d $MHOME -g bbs -G uucp -m -s /bin/bash mbse
|
||||||
fi
|
fi
|
||||||
if [ "$OSTYPE" = "FreeBSD" ]; then
|
if [ "$OSTYPE" = "FreeBSD" ]; then
|
||||||
pw useradd mbse -c "MBSE BBS Admin" -d $MHOME -g bbs -G dialer -m -s /usr/local/bin/bash
|
pw useradd mbse -c "MBSE BBS Admin" -d $MHOME -g bbs -G wheel,dialer -m -s /usr/local/bin/bash
|
||||||
fi
|
fi
|
||||||
log "+" "[$?] Added user mbse"
|
log "+" "[$?] Added user mbse"
|
||||||
chmod 770 $MHOME
|
chmod 770 $MHOME
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
* File ..................: mbcico/ulock.c
|
* $Id$
|
||||||
* Purpose ...............: Fidonet mailer
|
* Purpose ...............: Fidonet mailer
|
||||||
* Last modification date : 18-Dec-1999
|
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-1999
|
* Copyright (C) 1997-2001
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -33,8 +32,12 @@
|
|||||||
#include "../lib/clcomm.h"
|
#include "../lib/clcomm.h"
|
||||||
|
|
||||||
#ifndef LOCKDIR
|
#ifndef LOCKDIR
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#define LOCKDIR "/var/spool/lock"
|
||||||
|
#else
|
||||||
#define LOCKDIR "/var/lock"
|
#define LOCKDIR "/var/lock"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define LCKPREFIX LOCKDIR"/LCK.."
|
#define LCKPREFIX LOCKDIR"/LCK.."
|
||||||
#define LCKTMP LOCKDIR"/TMP."
|
#define LCKTMP LOCKDIR"/TMP."
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
Autogenerated by configure
|
* $Id$
|
||||||
|
*
|
||||||
|
* Autogenerated by configure
|
||||||
*/
|
*/
|
||||||
#define _PATH_COMPRESS "@COMPRESS@"
|
#define _PATH_COMPRESS "@COMPRESS@"
|
||||||
#define _PATH_GZIP "@GZIP@"
|
#define _PATH_GZIP "@GZIP@"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
# Installation script to install bootscripts.
|
# Installation script to install bootscripts.
|
||||||
#
|
#
|
||||||
# (C) Michiel Broek, v0.24 25-Oct-2001
|
|
||||||
#
|
|
||||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$MBSE_ROOT/bin
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$MBSE_ROOT/bin
|
||||||
DISTNAME=
|
DISTNAME=
|
||||||
DISTVERS=
|
DISTVERS=
|
||||||
@ -582,16 +582,25 @@ if [ "$DISTNAME" = "FreeBSD" ]; then
|
|||||||
DISTINIT="$MBSE_ROOT/etc/rc"
|
DISTINIT="$MBSE_ROOT/etc/rc"
|
||||||
echo "Adding FreeBSD style MBSE BBS start/stop scripts"
|
echo "Adding FreeBSD style MBSE BBS start/stop scripts"
|
||||||
log "+" "Adding FreeBSD style MBSE BBS start/stop scripts"
|
log "+" "Adding FreeBSD style MBSE BBS start/stop scripts"
|
||||||
if [ "`grep MBSE /etc/rc.local`" = "" ]; then
|
if [ -f /etc/rc.local ]; then
|
||||||
log "+" "Adding $MBSE_ROOT/etc/rc to /etc/rc.local"
|
if [ "`grep MBSE /etc/rc.local`" = "" ]; then
|
||||||
mv /etc/rc.local /etc/rc.local.mbse
|
log "+" "Adding $MBSE_ROOT/etc/rc to existing /etc/rc.local"
|
||||||
cat /etc/rc.local.mbse >/etc/rc.local
|
mv /etc/rc.local /etc/rc.local.mbse
|
||||||
echo "# Start MBSE BBS" >>/etc/rc.local
|
cat /etc/rc.local.mbse >/etc/rc.local
|
||||||
echo "$MBSE_ROOT/etc/rc" >>/etc/rc.local
|
echo "# Start MBSE BBS" >>/etc/rc.local
|
||||||
chmod 644 /etc/rc.local
|
echo "$MBSE_ROOT/etc/rc" >>/etc/rc.local
|
||||||
echo " Added $MBSE_ROOT/etc/rc to /etc/rc.local"
|
chmod 644 /etc/rc.local
|
||||||
echo " /etc/rc.local.mbse is a backup file."
|
echo " Added $MBSE_ROOT/etc/rc to /etc/rc.local"
|
||||||
echo ""
|
echo " /etc/rc.local.mbse is a backup file."
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
log "+" "Adding $MBSE_ROOT/etc/rc to new /etc/rc.local"
|
||||||
|
echo "# Start MBSE BBS" >/etc/rc.local
|
||||||
|
echo "$MBSE_ROOT/etc/rc" >>/etc/rc.local
|
||||||
|
chmod 644 /etc/rc.local
|
||||||
|
echo " Added $MBSE_ROOT/etc/rc to /etc/rc.local"
|
||||||
|
echo ""
|
||||||
fi
|
fi
|
||||||
cp mbse.start $MBSE_ROOT/bin
|
cp mbse.start $MBSE_ROOT/bin
|
||||||
cp mbse.stop $MBSE_ROOT/bin
|
cp mbse.stop $MBSE_ROOT/bin
|
||||||
|
Reference in New Issue
Block a user