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/bbsdoor.sh

25 lines
593 B
Bash
Raw Normal View History

2001-10-22 18:54:15 +00:00
#!/bin/sh
#
2002-03-16 14:54:21 +00:00
# $Id$
#
2001-10-22 18:54:15 +00:00
# Initialize DOS environment before starting a bbs door.
2001-10-22 20:37:08 +00:00
# Parameters: $1 = name of the door
# $2 = the nodenumber for this session
2001-10-22 18:54:15 +00:00
#
2001-10-22 20:37:08 +00:00
# by Redy Rodriguez, 22-Oct-2001
2001-10-22 18:54:15 +00:00
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
2001-10-22 20:37:08 +00:00
if [ ! -d $HOME/.dosemu ]; then
mkdir $HOME/.dosemu
2001-10-22 18:54:15 +00:00
fi
2001-10-22 20:37:08 +00:00
if [ ! -f $HOME/.dosemu/disclaimer ]; then
touch $HOME/.dosemu/disclaimer
2001-10-22 18:54:15 +00:00
fi
fi
fi