Created dosemu script for mbse
This commit is contained in:
parent
7c4365d2f6
commit
c76d15fb33
@ -86,7 +86,7 @@ install:
|
|||||||
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 runvirtual.sh ${BINDIR}/runvirtual.sh.new ; \
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 runvirtual.sh ${BINDIR}/runvirtual.sh.new ; \
|
||||||
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 runvirtual.sh ${BINDIR}/runvirtual.sh.new" ; \
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 runvirtual.sh ${BINDIR}/runvirtual.sh.new" ; \
|
||||||
fi
|
fi
|
||||||
${INSTALL} -o ${OWNER} -g ${GROUP} -m 0440 doors.bat ${VARDIR}/dosemu/c
|
${INSTALL} -o ${OWNER} -g ${GROUP} -m 0640 doors.bat ${VARDIR}/dosemu/c
|
||||||
${INSTALL} -o ${OWNER} -g ${GROUP} -m 0744 mbsedos ${BINDIR}
|
${INSTALL} -o ${OWNER} -g ${GROUP} -m 0744 mbsedos ${BINDIR}
|
||||||
@bash ./installinit.sh
|
@bash ./installinit.sh
|
||||||
|
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
if [ "`whoami`" != "mbse" ]; then
|
||||||
|
echo "Only user 'mbse' is allowed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Save initial umask and set group read/write for dos
|
||||||
|
UMASK=`umask`
|
||||||
|
umask 007
|
||||||
|
|
||||||
|
# Run DOS in X
|
||||||
|
dosemu.bin -X -f $MBSE_ROOT/etc/dosemu/dosemu.conf
|
||||||
|
|
||||||
|
# Restore umask
|
||||||
|
umask $UMASK
|
||||||
|
Reference in New Issue
Block a user