Changed init scripts to start after a power failure

This commit is contained in:
Michiel Broek 2003-12-26 11:28:15 +00:00
parent f645f1a8e6
commit 32300e69df
10 changed files with 130 additions and 135 deletions

View File

@ -8,6 +8,9 @@ v0.39.5 24-Dec-2003
script: script:
Fixed NetBSD init script Fixed NetBSD init script
All init scripts now clean the ~/var/run directory and start
the bbs allways so that the bbs will try to start after a power
failure.
v0.39.4 08-Dec-2003 - 24-Dec-2003 v0.39.4 08-Dec-2003 - 24-Dec-2003

View File

@ -1,7 +1,15 @@
$Id$
MBSE BBS Script files. MBSE BBS Script files.
If you want to make any changes to the scripts, do it here and not in the If you want to make any changes to the scripts, do it here and not in the
~/etc and ~/bin directories. After making the changes do a 'make install' ~/etc and ~/bin directories. After making the changes do a 'make install'
as root and the scripts are in place with the right permissions and owners. as root and the scripts are in place with the right permissions and owners.
Also, if you use a distribution which is not supported here and want to
have it added, then send the file installinit.log found in this directory,
SETUP.log (if exists) from the mbse main directory and a possible written
inew init script you may have written.
Michiel Michiel

View File

@ -31,21 +31,18 @@ export MBSE_ROOT
case "$1" in case "$1" in
start) start)
echo -n "Starting $DESC: " echo -n "Starting $DESC: "
if [ -f $MBSE_ROOT/var/run/mbtask ]; then rm -f $MBSE_ROOT/var/run/*
echo "already running" rm -f $MBSE_ROOT/sema/*
else rm -f $MBSE_ROOT/var/*.LCK
rm -f $MBSE_ROOT/sema/* rm -f $MBSE_ROOT/tmp/mb*
rm -f $MBSE_ROOT/var/*.LCK su mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null
rm -f $MBSE_ROOT/tmp/mb* echo -n "mbtask "
su mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null sleep 2
echo -n "mbtask " if [ -f $MBSE_ROOT/etc/config.data ]; then
sleep 2 su mbse -c '$MBSE_ROOT/bin/mbstat open -quiet'
if [ -f $MBSE_ROOT/etc/config.data ]; then echo -n "opened "
su mbse -c '$MBSE_ROOT/bin/mbstat open -quiet'
echo -n "opened "
fi
echo "done."
fi fi
echo "done."
;; ;;
stop) stop)
echo -n "Stopping $DESC: " echo -n "Stopping $DESC: "

View File

@ -10,13 +10,13 @@
# Find the MBSE_ROOT from the /etc/passwd file. # Find the MBSE_ROOT from the /etc/passwd file.
MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'` MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
if [ "$MBSE_ROOT" = "" ] if [ "${MBSE_ROOT}" = "" ]
then then
echo "MBSE BBS: No 'mbse' user in the password file." echo "MBSE BBS: No 'mbse' user in the password file."
exit 1 exit 1
fi fi
if [ ! -d $MBSE_ROOT ] if [ ! -d ${MBSE_ROOT} ]
then then
echo "MBSE BBS: Home directory '${MBSE_ROOT}' not found." echo "MBSE BBS: Home directory '${MBSE_ROOT}' not found."
exit 1 exit 1
@ -27,39 +27,38 @@ export MBSE_ROOT
# See how we were called. # See how we were called.
case "$1" in case "$1" in
start) start)
if [ ! -f $MBSE_ROOT/var/run/mbtask ]; then rm -f ${MBSE_ROOT}/var/run/*
rm -f ${MBSE_ROOT}/sema/* rm -f ${MBSE_ROOT}/sema/*
rm -f ${MBSE_ROOT}/var/*.LCK rm -f ${MBSE_ROOT}/var/*.LCK
rm -f ${MBSE_ROOT}/tmp/mb* rm -f ${MBSE_ROOT}/tmp/mb*
su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null
echo -n " mbtask" echo -n " mbtask"
sleep 2 sleep 2
if [ -f ${MBSE_ROOT}/etc/config.data ]; then if [ -f ${MBSE_ROOT}/etc/config.data ]; then
su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet' su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet'
echo -n ", opened bbs" echo -n ", opened bbs"
fi
fi fi
;; ;;
stop) stop)
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n " logoff users" echo -n " logoff users"
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null su mbse -c '${MBSE_ROOT}/bin/mbstat close wait -quiet' >/dev/null
kill -15 `cat $MBSE_ROOT/var/run/mbtask` kill -15 `cat ${MBSE_ROOT}/var/run/mbtask`
sleep 1 sleep 1
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n "." echo -n "."
sleep 1 sleep 1
fi fi
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n "." echo -n "."
sleep 1 sleep 1
fi fi
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n "." echo -n "."
sleep 1 sleep 1
fi fi
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
kill -9 `cat $MBSE_ROOT/var/run/mbtask` kill -9 `cat ${MBSE_ROOT}/var/run/mbtask`
fi fi
echo -n " done" echo -n " done"
fi fi

View File

@ -10,18 +10,18 @@
MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'` MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
if [ "$MBSE_ROOT" = "" ]; then if [ "${MBSE_ROOT}" = "" ]; then
echo "MBSE BBS: No 'mbse' user in the password file." echo "MBSE BBS: No 'mbse' user in the password file."
exit 1 exit 1
fi fi
if [ ! -d $MBSE_ROOT ]; then if [ ! -d ${MBSE_ROOT} ]; then
echo "MBSE BBS: Home directory '$MBSE_ROOT' not found." echo "MBSE BBS: Home directory '${MBSE_ROOT}' not found."
exit 1 exit 1
fi fi
PATH=/sbin:/bin:/usr/sbin:/usr/bin:$MBSE_ROOT/bin PATH=/sbin:/bin:/usr/sbin:/usr/bin:${MBSE_ROOT}/bin
DAEMON=$MBSE_ROOT/bin/mbtask DAEMON=${MBSE_ROOT}/bin/mbtask
NAME=mbsebbs NAME=mbsebbs
DESC="MBSE BBS" DESC="MBSE BBS"
@ -34,14 +34,15 @@ depend() {
start() { start() {
ebegin "Starting mbse" ebegin "Starting mbse"
rm -f $MBSE_ROOT/sema/* rm -f ${MBSE_ROOT}/var/run/*
rm -f $MBSE_ROOT/var/*.LCK rm -f ${MBSE_ROOT}/sema/*
rm -f $MBSE_ROOT/tmp/mb* rm -f ${MBSE_ROOT}/var/*.LCK
su mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null rm -f ${MBSE_ROOT}/tmp/mb*
su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null
echo -n "mbtask " echo -n "mbtask "
sleep 2 sleep 2
if [ -f $MBSE_ROOT/etc/config.data ]; then if [ -f ${MBSE_ROOT}/etc/config.data ]; then
su mbse -c '$MBSE_ROOT/bin/mbstat open -quiet' su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet'
echo -n "opened " echo -n "opened "
fi fi
eend $? "Loading error." eend $? "Loading error."
@ -51,16 +52,16 @@ start() {
stop() { stop() {
ebegin "Stopping mbse" ebegin "Stopping mbse"
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n "logoff users " echo -n "logoff users "
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null su mbse -c '${MBSE_ROOT}/bin/mbstat close wait -quiet' >/dev/null
echo -n " stopping mbtask" echo -n " stopping mbtask"
kill `cat $MBSE_ROOT/var/run/mbtask` kill `cat ${MBSE_ROOT}/var/run/mbtask`
i=10 i=10
doit=1 doit=1
while let 'i > 0' && let 'doit != 0' while let 'i > 0' && let 'doit != 0'
do do
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n "." echo -n "."
sleep 1 sleep 1
let i=i-1 let i=i-1
@ -68,8 +69,8 @@ stop() {
doit=0 doit=0
fi fi
done done
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
kill -9 `cat $MBSE_ROOT/var/run/mbtask` kill -9 `cat ${MBSE_ROOT}/var/run/mbtask`
fi fi
fi fi
eend $? "Stopping error." eend $? "Stopping error."

View File

@ -39,22 +39,20 @@ mbsebbs_start()
export MBSE_ROOT export MBSE_ROOT
if [ ! -f ${MBSE_ROOT}/var/run/mbtask ]; then rm -f ${MBSE_ROOT}/var/run/*
rm -f ${MBSE_ROOT}/sema/* rm -f ${MBSE_ROOT}/sema/*
rm -f ${MBSE_ROOT}/var/*.LCK rm -f ${MBSE_ROOT}/var/*.LCK
rm -f ${MBSE_ROOT}/tmp/mb* rm -f ${MBSE_ROOT}/tmp/mb*
su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null 2>&1 su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null 2>&1
echo -n " mbtask" echo -n " mbtask"
sleep 2 sleep 2
if [ -f ${MBSE_ROOT}/etc/config.data ]; then if [ -f ${MBSE_ROOT}/etc/config.data ]; then
su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet' su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet'
echo ", opened bbs" echo ", opened bbs"
fi
else
echo " is already running"
fi fi
} }
mbsebbs_stop() mbsebbs_stop()
{ {
echo -n "Stopping mbsebbs:" echo -n "Stopping mbsebbs:"
@ -77,7 +75,7 @@ mbsebbs_stop()
if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n " logoff users" echo -n " logoff users"
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null su mbse -c '${MBSE_ROOT}/bin/mbstat close wait -quiet' >/dev/null
kill -15 `cat ${MBSE_ROOT}/var/run/mbtask` kill -15 `cat ${MBSE_ROOT}/var/run/mbtask`
sleep 1 sleep 1
if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then

View File

@ -18,15 +18,15 @@
# Find the MBSE_ROOT from the /etc/passwd file. # Find the MBSE_ROOT from the /etc/passwd file.
MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'` MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
if [ "$MBSE_ROOT" = "" ] if [ "${MBSE_ROOT}" = "" ]
then then
echo "MBSE BBS: No 'mbse' user in the password file." echo "MBSE BBS: No 'mbse' user in the password file."
exit 1 exit 1
fi fi
if [ ! -d $MBSE_ROOT ] if [ ! -d ${MBSE_ROOT} ]
then then
echo "MBSE BBS: Home directory '$MBSE_ROOT' not found." echo "MBSE BBS: Home directory '${MBSE_ROOT}' not found."
exit 1 exit 1
fi fi
@ -67,27 +67,24 @@ fi
case "$1" in case "$1" in
start) start)
echo -n "Starting MBSE BBS: " echo -n "Starting MBSE BBS: "
if [ -f $MBSE_ROOT/var/run/mbtask ]; then rm -f ${MBSE_ROOT}/var/run/*
echo "already started" rm -f ${MBSE_ROOT}/sema/*
else rm -f ${MBSE_ROOT}/var/*.LCK
rm -f $MBSE_ROOT/sema/* rm -f ${MBSE_ROOT}/tmp/mb*
rm -f $MBSE_ROOT/var/*.LCK $SU mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null
rm -f $MBSE_ROOT/tmp/mb* echo -n "mbtask "
$SU mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null sleep 2
echo -n "mbtask " if [ -f ${MBSE_ROOT}/etc/config.data ]; then
sleep 2 $SU mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet'
if [ -f $MBSE_ROOT/etc/config.data ]; then echo "opened"
$SU mbse -c '$MBSE_ROOT/bin/mbstat open -quiet'
echo "opened"
fi
touch /var/lock/subsys/mbsed
fi fi
touch /var/lock/subsys/mbsed
;; ;;
stop) stop)
echo -n "Shutting down MBSE BBS: " echo -n "Shutting down MBSE BBS: "
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n "logoff users " echo -n "logoff users "
$SU mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null $SU mbse -c '${MBSE_ROOT}/bin/mbstat close wait -quiet' >/dev/null
echo -n "done, " echo -n "done, "
echo -n "stop mbtask: " echo -n "stop mbtask: "
killproc mbtask -15 killproc mbtask -15

View File

@ -10,15 +10,15 @@
# Find the MBSE_ROOT from the /etc/passwd file. # Find the MBSE_ROOT from the /etc/passwd file.
MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'` MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
if [ "$MBSE_ROOT" = "" ] if [ "${MBSE_ROOT}" = "" ]
then then
echo "MBSE BBS: No 'mbse' user in the password file." echo "MBSE BBS: No 'mbse' user in the password file."
exit 1 exit 1
fi fi
if [ ! -d $MBSE_ROOT ] if [ ! -d ${MBSE_ROOT} ]
then then
echo "MBSE BBS: Home directory '$MBSE_ROOT' not found." echo "MBSE BBS: Home directory '${MBSE_ROOT}' not found."
exit 1 exit 1
fi fi
@ -28,32 +28,29 @@ export MBSE_ROOT
case "$1" in case "$1" in
start) start)
echo -n "MBSE BBS starting:" echo -n "MBSE BBS starting:"
if [ -f $MBSE_ROOT/var/run/mbtask ]; then rm -f ${MBSE_ROOT}/var/run/*
echo " already started" rm -f ${MBSE_ROOT}/sema/*
else rm -f ${MBSE_ROOT}/var/*.LCK
rm -f $MBSE_ROOT/sema/* rm -f ${MBSE_ROOT}/tmp/mb*
rm -f $MBSE_ROOT/var/*.LCK su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null
rm -f $MBSE_ROOT/tmp/mb* echo -n " mbtask"
su mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null sleep 2
echo -n " mbtask" if [ -f ${MBSE_ROOT}/etc/config.data ]; then
sleep 2 su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet'
if [ -f $MBSE_ROOT/etc/config.data ]; then echo " and opened the bbs."
su mbse -c '$MBSE_ROOT/bin/mbstat open -quiet'
echo " and opened the bbs."
fi
fi fi
;; ;;
stop) stop)
echo -n "MBSE BBS shutdown:" echo -n "MBSE BBS shutdown:"
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n " logoff users " echo -n " logoff users "
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null su mbse -c '${MBSE_ROOT}/bin/mbstat close wait -quiet' >/dev/null
echo -n "done, stopping mbtask" echo -n "done, stopping mbtask"
kill -15 `cat $MBSE_ROOT/var/run/mbtask` kill -15 `cat ${MBSE_ROOT}/var/run/mbtask`
i=10; doit=1; i=10; doit=1;
while let 'i > 0' && let 'doit != 0' while let 'i > 0' && let 'doit != 0'
do do
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n "." echo -n "."
sleep 1 sleep 1
let i=i-1 let i=i-1
@ -61,8 +58,8 @@ case "$1" in
doit=0 doit=0
fi fi
done done
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
kill -9 `cat $MBSE_ROOT/var/run/mbtask` kill -9 `cat ${MBSE_ROOT}/var/run/mbtask`
fi fi
echo " done." echo " done."
else else
@ -71,10 +68,10 @@ case "$1" in
;; ;;
status) status)
echo -n "MBSE BBS status: " echo -n "MBSE BBS status: "
if [ ! -f $MBSE_ROOT/var/run/mbtask ]; then if [ ! -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo "mbtask is NOT running" echo "mbtask is NOT running"
else else
echo "mbtask running with pid `cat $MBSE_ROOT/var/run/mbtask`" echo "mbtask running with pid `cat ${MBSE_ROOT}/var/run/mbtask`"
fi fi
;; ;;
restart|reload) restart|reload)

View File

@ -14,15 +14,15 @@
# Find the MBSE_ROOT from the /etc/passwd file. # Find the MBSE_ROOT from the /etc/passwd file.
MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'` MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
if [ "$MBSE_ROOT" = "" ] if [ "${MBSE_ROOT}" = "" ]
then then
echo "MBSE BBS: No 'mbse' user in the password file." echo "MBSE BBS: No 'mbse' user in the password file."
exit 1 exit 1
fi fi
if [ ! -d $MBSE_ROOT ] if [ ! -d ${MBSE_ROOT} ]
then then
echo "MBSE BBS: Home directory '$MBSE_ROOT' not found." echo "MBSE BBS: Home directory '${MBSE_ROOT}' not found."
exit 1 exit 1
fi fi
@ -31,31 +31,26 @@ export MBSE_ROOT
case "$1" in case "$1" in
start) start)
echo -n "MBSE BBS starting:" echo -n "MBSE BBS starting:"
if [ -f $MBSE_ROOT/var/run/mbtask ]; then rm -f ${MBSE_ROOT}/var/run/*
echo " already started" rm -f ${MBSE_ROOT}/sema/*
else rm -f ${MBSE_ROOT}/var/*.LCK
rm -f $MBSE_ROOT/sema/* rm -f ${MBSE_ROOT}/tmp/mb*
rm -f $MBSE_ROOT/var/*.LCK su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null
rm -f $MBSE_ROOT/tmp/mb* echo -n " mbtask"
su mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null sleep 2
echo -n " mbtask" if [ -f ${MBSE_ROOT}/etc/config.data ]; then
sleep 2 su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet'
if [ -f $MBSE_ROOT/etc/config.data ]; then echo " and opened the bbs."
su mbse -c '$MBSE_ROOT/bin/mbstat open -quiet'
echo " and opened the bbs."
else
echo ""
fi
fi fi
;; ;;
stop) stop)
echo -n "MBSE BBS shutdown:" echo -n "MBSE BBS shutdown:"
if [ -f $MBSE_ROOT/var/run/mbtask ]; then if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo -n " logoff users " echo -n " logoff users "
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null su mbse -c '${MBSE_ROOT}/bin/mbstat close wait -quiet' >/dev/null
echo -n "done," echo -n "done,"
echo -n " stopping mbtask " echo -n " stopping mbtask "
killproc `cat $MBSE_ROOT/var/run/mbtask` -15 killproc `cat ${MBSE_ROOT}/var/run/mbtask` -15
sleep 3 sleep 3
echo "done." echo "done."
else else
@ -68,7 +63,7 @@ case "$1" in
;; ;;
status) status)
echo -n "MBSE BBS status: " echo -n "MBSE BBS status: "
if [ ! -f $MBSE_ROOT/var/run/mbtask ]; then if [ ! -f ${MBSE_ROOT}/var/run/mbtask ]; then
echo "mbtask is NOT running" echo "mbtask is NOT running"
else else
echo "mbtask Ok" echo "mbtask Ok"

View File

@ -3,7 +3,7 @@
# #
# Installation script to install bootscripts. # Installation script to install bootscripts.
# #
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$MBSE_ROOT/bin PATH=/bin:/sbin:/usr/bin:/usr/sbin:${MBSE_ROOT}/bin
DISTNAME= DISTNAME=
DISTVERS= DISTVERS=
DISTINIT= DISTINIT=
@ -39,7 +39,7 @@ EOF
exit 2 exit 2
fi fi
if [ "$MBSE_ROOT" = "" ]; then if [ "${MBSE_ROOT}" = "" ]; then
echo "*** The MBSE_ROOT doesn't exist ***" echo "*** The MBSE_ROOT doesn't exist ***"
log "!" "Aborted, MBSE_ROOT variable doesn't exist" log "!" "Aborted, MBSE_ROOT variable doesn't exist"
exit 2 exit 2
@ -154,9 +154,9 @@ if [ "$DISTNAME" = "Slackware" ]; then
log "+" "Adding SystemV Slackware $DISTVERS MBSE BBS start/stop scripts" log "+" "Adding SystemV Slackware $DISTVERS MBSE BBS start/stop scripts"
cp init.Slackware $DISTINIT cp init.Slackware $DISTINIT
chmod 755 $DISTINIT chmod 755 $DISTINIT
if [ -f $MBSE_ROOT/bin/mbse.start ]; then if [ -f ${MBSE_ROOT}/bin/mbse.start ]; then
echo "Removing old startup scripts" echo "Removing old startup scripts"
rm $MBSE_ROOT/bin/mbse.start $MBSE_ROOT/bin/mbse.stop $MBSE_ROOT/etc/rc $MBSE_ROOT/etc/rc.shutdown rm ${MBSE_ROOT}/bin/mbse.start ${MBSE_ROOT}/bin/mbse.stop ${MBSE_ROOT}/etc/rc ${MBSE_ROOT}/etc/rc.shutdown
fi fi
if [ -d /var/log/setup ]; then if [ -d /var/log/setup ]; then
cp setup.mbse /var/log/setup cp setup.mbse /var/log/setup