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

33 lines
678 B
Plaintext
Raw Normal View History

2001-08-17 05:46:24 +00:00
#
# ~/bin/mbse.start
# BBS Startup script, should be run as BBS owner.
# Note: This is only used on Slackware systems until 7.0.0
#
# 27-May-2001 MB.
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 "
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