Skip to content

Commit

Permalink
More work
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoerzen committed May 8, 2017
1 parent 782264c commit 3a5b9a6
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update && \
COPY scripts/ /usr/local/bin/
COPY supervisor/ /etc/supervisor/conf.d/
COPY setup/ /tmp/setup/
COPY autoexec.bat /etc/dosemu/freedos/autoexec.bat
RUN /tmp/setup/setup.sh && rm -r /tmp/setup

EXPOSE 5901
Expand Down
11 changes: 11 additions & 0 deletions autoexec.bat
@@ -0,0 +1,11 @@
@echo off
rem autoexec.bat for DOSEMU + FreeDOS
path z:\bin;z:\gnu;z:\dosemu;h:\utils
set HELPPATH=z:\help
set TEMP=c:\tmp
blaster
prompt $P$G
unix -s DOSEMU_VERSION
echo "Welcome to dosemu %DOSEMU_VERSION%!"
CALL E:\BOOTUP
unix -e
21 changes: 21 additions & 0 deletions autoexec.bat.orig
@@ -0,0 +1,21 @@
@echo off
rem autoexec.bat for DOSEMU + FreeDOS
path z:\bin;z:\gnu;z:\dosemu
set HELPPATH=z:\help
set TEMP=c:\tmp
blaster
prompt $P$G
unix -s DOSDRIVE_D
if "%DOSDRIVE_D%" == "" goto nodrived
lredir del d: > nul
lredir d: linux\fs%DOSDRIVE_D%
:nodrived
rem uncomment to load another bitmap font
rem loadhi display con=(vga,437,2)
rem mode con codepage prepare=((850) z:\cpi\ega.cpx)
rem mode con codepage select 850
rem chcp 850
lredir e: linux\fs/media/cdrom c
unix -s DOSEMU_VERSION
echo "Welcome to dosemu %DOSEMU_VERSION%!"
unix -e
2 changes: 1 addition & 1 deletion scripts/startdossession
Expand Up @@ -7,7 +7,7 @@ if [ -z "$1" ]; then
exit 1
fi

SESSION="$1"
export SESSION="$1"
SESSPATH="/dos/sessions/$1"

if [ ! -e "$SESSPATH" ]; then
Expand Down
5 changes: 3 additions & 2 deletions setup/setup.sh
Expand Up @@ -8,8 +8,9 @@ cd /usr/local/bin
ln -s /usr/bin/vim.tiny vim
ln -s /usr/bin/vim.tiny vi

for DRIVE in d e f g h i j k; do
mkdir -p /dos/drives/$DRIVE
for DRIVE in e f g h i j k; do
mkdir -p /dos/drive_$DRIVE
ln -s /dos/drive_$DRIVE /etc/dosemu/drives/$DRIVE
done

mkdir /dos/sessions
Expand Down

0 comments on commit 3a5b9a6

Please sign in to comment.