diff --git a/ChangeLog b/ChangeLog index 6a67476d..e233b27e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,11 @@ v0.35.03 06-Jul-2002 The test to add a node to the calllist now also checks the 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 diff --git a/html/faq.html b/html/faq.html index 7fbc175c..bbd56d68 100644 --- a/html/faq.html +++ b/html/faq.html @@ -26,7 +26,7 @@
Author: P.E. Kimble aka King Kimerud@@ -739,7 +739,12 @@ asked.
kimerud@bayhaus.org
First we need a pair of scripts. These scripts are installed when you did install MBSE. These scripts are needed to execute the doors and are installed in /opt/mbse/bin:
---- rundoor.sh ---+
#!/bin/bash
#
# rundoor.sh - Never call this script directly, create a symlink
# to this file with the name of the door. For example
# tu run the door ilord do:
# cd /opt/mbse/bin
# ln -s rundoor.sh ilord
#
# by Redy Rodriguez and Michiel Broek.
#
DOOR=`basename $0`
COMMANDO="\" door $DOOR $*\r\""
/usr/bin/sudo /opt/mbse/bin/bbsdoor.sh $DOOR $1
/usr/bin/sudo /opt/dosemu/bin/dosemu.bin \
-F /var/lib/dosemu/global.conf \
-I "`echo -e serial { com 1 virtual }"\n" keystroke $COMMANDO`"
reset
tput reset
stty sane
--- bbsdoor.sh ---
#
# Initialize DOS environment before starting a bbs door.
# Parameters: $1 = name of the door
# $2 = the nodenumber for this session
#
# by Redy Rodriguez, 22-Oct-2001
if [ "$1" != "" ]; then
if [ "$2" != "" ]; then
mkdir -p /dos/c/doors/node$2 >/dev/null 2>&1
# Copy door.sys to dos partition
cat ~/door.sys >/dos/c/doors/node$2/door.sys
# Create .dosemu/disclaimer in user home to avoid warning
if [ ! -d $HOME/.dosemu ]; then
mkdir $HOME/.dosemu
fi
if [ ! -f $HOME/.dosemu/disclaimer ]; then
touch $HOME/.dosemu/disclaimer
fi
fi
fi
--- rundoor.sh ---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 of the .bat file that starts the door in the doors directory of the dos partition. diff --git a/script/Makefile b/script/Makefile index c61d5a9b..edfa0cf1 100644 --- a/script/Makefile +++ b/script/Makefile @@ -59,8 +59,12 @@ install: echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /etc/joe" ; \ fi ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR} - ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR} - ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR} + @if [ ! -x ${BINDIR}/bbsdoor.sh ]; then \ + ${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 filelist: Makefile
#!/bin/bash
#
# rundoor.sh - Never + call this script directly, create a symlink
# to this + file with the name of the door. For example
# tu run the + door ilord do:
# cd /opt/mbse/bin
# ln + -s rundoor.sh ilord
#
# by Redy Rodriguez and Michiel + Broek.
#
DOOR=`basename $0`
COMMANDO="\" doors $DOOR $*\r\""
/usr/bin/sudo /opt/mbse/bin/bbsdoor.sh $DOOR $1
/usr/bin/sudo /opt/dosemu/bin/dosemu.bin \
-F /var/lib/dosemu/global.conf \
-I "`echo -e serial { com 1 virtual }"\n" keystroke $COMMANDO`"
reset
tput reset
stty sane
--- bbsdoor.sh ---
#
# Initialize DOS environment before starting a bbs door.
# Parameters: $1 = name of the door
# $2 = the nodenumber for this session
#
# by Redy Rodriguez, 22-Oct-2001
if [ "$1" != "" ]; then
if [ "$2" != "" ]; then
mkdir -p /dos/c/doors/node$2 >/dev/null 2>&1
# Copy door.sys to dos partition
cat ~/door.sys >/dos/c/doors/node$2/door.sys
# Create .dosemu/disclaimer in user home to avoid warning
if [ ! -d $HOME/.dosemu ]; then
mkdir $HOME/.dosemu
fi
if [ ! -f $HOME/.dosemu/disclaimer ]; then
touch $HOME/.dosemu/disclaimer
fi
fi
fi