This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/script/mbse.start

34 lines
671 B
Plaintext
Raw Normal View History

2001-08-17 05:46:24 +00:00
#
# BBS Startup script, should be run as BBS owner.
2003-01-12 16:13:48 +00:00
# Note: This is only used on Slackware systems until 7.0.0 and NetBSD.
2002-02-04 15:18:06 +00:00
#
# $Id$
2001-08-17 05:46:24 +00:00
#
if [ "$MBSE_ROOT" = "" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
# If installed, start the BBS.
#
if [ -f $MBSE_ROOT/bin/mbtask ]; then
echo -n "Starting MBSE BBS: "
rm -f $MBSE_ROOT/sema/*
rm -f $MBSE_ROOT/var/*.LCK
rm -f $MBSE_ROOT/tmp/mb*
cd $MBSE_ROOT
$MBSE_ROOT/bin/mbtask >/dev/null
echo -n "mbtask "
sleep 2
2001-08-17 05:46:24 +00:00
if [ -f $MBSE_ROOT/etc/config.data ]; then
$MBSE_ROOT/bin/mbstat open -quiet
echo -n "opened "
fi
echo "done"
else
echo "mbtask not available!"
exit 1
fi