Updates for running doors

This commit is contained in:
Michiel Broek 2002-07-10 21:16:57 +00:00
parent e04792e4cb
commit 4982b8bd2b
3 changed files with 18 additions and 4 deletions

View File

@ -27,6 +27,11 @@ v0.35.03 06-Jul-2002
The test to add a node to the calllist now also checks the The test to add a node to the calllist now also checks the
internal call flag. internal call flag.
script:
The bbsdoor.sh and rundoor.sh scripts are now only installed
if they were not installed before.
v0.35.02 22-Jun-2002 - 06-Jul-2002 v0.35.02 22-Jun-2002 - 06-Jul-2002

View File

@ -26,7 +26,7 @@
<hr> <hr>
<div align="Right"> <div align="Right">
<h5>Last updated 09-Jun-2002</h5> <h5>Last updated 10-Jul-2002</h5>
</div> </div>
<pre> Author: P.E. Kimble aka King Kimerud<br> kimerud@bayhaus.org<br> </pre> <pre> Author: P.E. Kimble aka King Kimerud<br> kimerud@bayhaus.org<br> </pre>
@ -739,7 +739,12 @@ asked.
<p> First we need a pair of scripts. These scripts are installed <p> First we need a pair of scripts. These scripts are installed
when you did install MBSE. These scripts are needed to execute the doors when you did install MBSE. These scripts are needed to execute the doors
and are installed in /opt/mbse/bin: </p> and are installed in /opt/mbse/bin: </p>
<pre>--- rundoor.sh ---<br><br>#!/bin/bash<br>#<br># rundoor.sh - Never call this script directly, create a symlink<br># to this file with the name of the door. For example<br># tu run the door ilord do:<br># cd /opt/mbse/bin<br># ln -s rundoor.sh ilord<br>#<br># by Redy Rodriguez and Michiel Broek.<br>#<br>DOOR=`basename $0`<br>COMMANDO="\" door $DOOR $*\r\""<br><br>/usr/bin/sudo /opt/mbse/bin/bbsdoor.sh $DOOR $1<br>/usr/bin/sudo /opt/dosemu/bin/dosemu.bin \<br> -F /var/lib/dosemu/global.conf \<br> -I "`echo -e serial { com 1 virtual }"\n" keystroke $COMMANDO`"<br>reset<br>tput reset<br>stty sane<br><br><br><br>--- bbsdoor.sh ---<br>#<br># Initialize DOS environment before starting a bbs door.<br># Parameters: $1 = name of the door<br># $2 = the nodenumber for this session<br>#<br># by Redy Rodriguez, 22-Oct-2001<br><br>if [ "$1" != "" ]; then<br> if [ "$2" != "" ]; then<br> mkdir -p /dos/c/doors/node$2 &gt;/dev/null 2&gt;&amp;1<br> # Copy door.sys to dos partition<br> cat ~/door.sys &gt;/dos/c/doors/node$2/door.sys<br> # Create .dosemu/disclaimer in user home to avoid warning<br> if [ ! -d $HOME/.dosemu ]; then<br> mkdir $HOME/.dosemu<br> fi<br> if [ ! -f $HOME/.dosemu/disclaimer ]; then<br> touch $HOME/.dosemu/disclaimer<br> fi<br> fi<br>fi<br><br></pre> <pre>--- rundoor.sh ---<br><br>#!/bin/bash<br>#<br># rundoor.sh - Never
call this script directly, create a symlink<br># to this
file with the name of the door. For example<br># tu run the
door ilord do:<br># cd /opt/mbse/bin<br># ln
-s rundoor.sh ilord<br>#<br># by Redy Rodriguez and Michiel
Broek.<br>#<br>DOOR=`basename $0`<br>COMMANDO="\" doors $DOOR $*\r\""<br><br>/usr/bin/sudo /opt/mbse/bin/bbsdoor.sh $DOOR $1<br>/usr/bin/sudo /opt/dosemu/bin/dosemu.bin \<br> -F /var/lib/dosemu/global.conf \<br> -I "`echo -e serial { com 1 virtual }"\n" keystroke $COMMANDO`"<br>reset<br>tput reset<br>stty sane<br><br><br><br>--- bbsdoor.sh ---<br>#<br># Initialize DOS environment before starting a bbs door.<br># Parameters: $1 = name of the door<br># $2 = the nodenumber for this session<br>#<br># by Redy Rodriguez, 22-Oct-2001<br><br>if [ "$1" != "" ]; then<br> if [ "$2" != "" ]; then<br> mkdir -p /dos/c/doors/node$2 &gt;/dev/null 2&gt;&amp;1<br> # Copy door.sys to dos partition<br> cat ~/door.sys &gt;/dos/c/doors/node$2/door.sys<br> # Create .dosemu/disclaimer in user home to avoid warning<br> if [ ! -d $HOME/.dosemu ]; then<br> mkdir $HOME/.dosemu<br> fi<br> if [ ! -f $HOME/.dosemu/disclaimer ]; then<br> touch $HOME/.dosemu/disclaimer<br> fi<br> fi<br>fi<br><br></pre>
The script rundoor.sh is never called directly, simply create a link with The script rundoor.sh is never called directly, simply create a link with
the name of the door to this file, this name must be the same as the one the name of the door to this file, this name must be the same as the one
of the .bat file that starts the door in the doors directory of the dos partition. of the .bat file that starts the door in the doors directory of the dos partition.

View File

@ -59,8 +59,12 @@ install:
echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /etc/joe" ; \ echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /etc/joe" ; \
fi fi
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR} ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR}
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR} @if [ ! -x ${BINDIR}/bbsdoor.sh ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR} ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR}" ; \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR}" ; \
fi
@bash ./installinit.sh @bash ./installinit.sh
filelist: Makefile filelist: Makefile