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
2001-10-22 18:54:15 +00:00

21 lines
485 B
Bash

#!/bin/sh
#
# Initialize DOS environment before starting a bbs door.
#
# by Redy Rodriguez, 21-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 ~/.dosemu ]; then
mkdir ~/.dosemu
fi
if [ ! -f ~/.dosemu/disclaimer ]; then
touch ~/.dosmenu/disclaimer
fi
fi
fi