forked from jgoerzen/docker-bbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·32 lines (25 loc) · 909 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
set -x
mkdir -p /dos/drive_{c,y}
mkdir /dos/drive_y/SCRIPTS
DOSBOXCONF="`/usr/bin/dosbox -printconf`"
mv "$DOSBOXCONF" /dos/dosbox.conf
for ASDF in c y; do
echo "mount $ASDF /dos/drive_$ASDF" >> /dos/dosbox.conf
done
echo "mount d /config/drive_d" >> /dos/dosbox.conf
echo 'path %PATH%;Y:\SCRIPTS' >> /dos/dosbox.conf
echo "d:" >> /dos/dosbox.conf
echo "@echo You may create start.bat in /config/drive_d directory to run app in DosBox on container start!" >>/dos/dosbox.conf
echo "d:\start.bat" >> /dos/dosbox.conf
# Fix an issue with the VNC console
sed -i 's/usescancodes=true/usescancodes=false/' /dos/dosbox.conf
# Limit cycles to 25000 to reduce CPU utilization
sed -i 's/cycles=auto/cycles=25000/' /dos/dosbox.conf
# ipxnet enable
sed -i 's/ipx=false/ipx=true/' /dos/dosbox.conf
# Convenience aliases
cd /usr/local/bin
ln -s /usr/bin/vim.tiny vim
ln -s /usr/bin/vim.tiny vi