From 4411180f3c4766238f3c6e78b5a57ab266aecc61 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 8 Aug 2004 15:22:21 +0000 Subject: [PATCH] Updated bbsdoor.sh for dosemu 1.2.0 and later --- ChangeLog | 5 +++++ TODO | 3 ++- script/bbsdoor.sh | 17 ++++++++++++++--- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1caedadd..13cde2fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ v0.61.3 25-Jul-2004 To reinstall the corrected macro templates go into the examples directory and type "make macros". In mbsetup menu 1.7 check the new items 15, 16 and 17. + If you use dosemu 1.2.0 or later, copy in ~/bin bbsdoor.sh.new + over bbsdoor.sh libmbse.a: Removed the fdn parameter from the attach and un_attach @@ -53,6 +55,9 @@ v0.61.3 25-Jul-2004 Fixed another spelling error in the filemgr.help template of all languages. + script: + Changed bbsdoor.sh so that it works for dosemu 1.2.0 and later. + lang: Added language prompts 26 and 27. diff --git a/TODO b/TODO index 47969269..1218dd65 100644 --- a/TODO +++ b/TODO @@ -50,7 +50,8 @@ mbsebbs: X: OLR: implement limit date function. - X: OLR: include private email area in download packets. + X: OLR: include private email area in download packets. See also global + wish for private email areas. X: OLR: implement some global settings from the offline configuration. diff --git a/script/bbsdoor.sh b/script/bbsdoor.sh index bfda8f2e..e0ae1bf2 100644 --- a/script/bbsdoor.sh +++ b/script/bbsdoor.sh @@ -8,17 +8,28 @@ # # by Redy Rodriguez, 22-Oct-2001 +DOSDRIVE=/dos/c + if [ "$1" != "" ]; then if [ "$2" != "" ]; then - mkdir -p /dos/c/doors/node$2 >/dev/null 2>&1 + mkdir -p $DOSDRIVE/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 + cat ~/door.sys >$DOSDRIVE/doors/node$2/door.sys + # Create .dosemu directory for the user. if [ ! -d $HOME/.dosemu ]; then mkdir $HOME/.dosemu fi + # Looks cheap, see above, but this does an upgrade too + if [ ! -d $HOME/.dosemu/drives ]; then + mkdir $HOME/.dosemu/drives + fi + # Create .dosemu/disclaimer in user home to avoid warning if [ ! -f $HOME/.dosemu/disclaimer ]; then touch $HOME/.dosemu/disclaimer fi + # For dosemu 1.2.0 and later, create a link to the drive + if [ ! -f $HOME/.dosemu/drives/c ]; then + ln -s $DOSDRIVE $HOME/.dosemu/drives/c + fi fi fi