summaryrefslogtreecommitdiffstats
path: root/src/os-plugins
diff options
context:
space:
mode:
authorDirk2011-07-07 20:39:19 +0200
committerDirk2011-07-07 20:39:19 +0200
commit74ec9bad5b9c5f3f68e84188043103f2deeb2347 (patch)
tree3e5c4e3c556978e3c2dfcd892cc9793572c8675e /src/os-plugins
parentExtensions of the emufe plugin ... (diff)
downloadcore-74ec9bad5b9c5f3f68e84188043103f2deeb2347.tar.gz
core-74ec9bad5b9c5f3f68e84188043103f2deeb2347.tar.xz
core-74ec9bad5b9c5f3f68e84188043103f2deeb2347.zip
...
Diffstat (limited to 'src/os-plugins')
-rw-r--r--src/os-plugins/plugins/emufe/XX_emufe.sh2
-rw-r--r--src/os-plugins/plugins/emufe/files/run-virt.include12
-rw-r--r--src/os-plugins/plugins/vmchooser/files/run-virt.sh2
3 files changed, 11 insertions, 5 deletions
diff --git a/src/os-plugins/plugins/emufe/XX_emufe.sh b/src/os-plugins/plugins/emufe/XX_emufe.sh
index 22dabdf5..abde18dd 100644
--- a/src/os-plugins/plugins/emufe/XX_emufe.sh
+++ b/src/os-plugins/plugins/emufe/XX_emufe.sh
@@ -35,7 +35,7 @@ if [ -e /initramfs/plugin-conf/emufe.conf ]; then
# copy virtualization include files and emufe.conf to config dir
testmkd ${PLUGINCONFDIR}
cp /mnt/${PLUGINDIR}/run-virt.include ${PLUGINCONFDIR}
- cp ${CONFFILE} ${PLUGINCONFDIR}
+ cp /initramfs/plugin-conf/emufe.conf ${PLUGINCONFDIR}
fi
############################################################################
diff --git a/src/os-plugins/plugins/emufe/files/run-virt.include b/src/os-plugins/plugins/emufe/files/run-virt.include
index e3fbfb7f..8e647b12 100644
--- a/src/os-plugins/plugins/emufe/files/run-virt.include
+++ b/src/os-plugins/plugins/emufe/files/run-virt.include
@@ -36,11 +36,11 @@ PLUGINDIRQK=${OPENSLX_DEFAULT_DIR}/plugin-repo/${self}
# create TMPDIR for all users
mkdir -m 1777 /tmp/${self} 2>/dev/null
# TMPDIR
-TMPDIR="/tmp/${self}/${USER}/${VM_ID}"
+TMPDIR="/tmp/${self}/${USER}"
# define dirs and files which can be removed after exit, be carefull!
RMDIRS="${TMPDIR}"
rm -rf ${RMDIRS} 2>/dev/null
-mkdir -m 1777 -p ${QKTMPDIR} 2>/dev/null
+mkdir -m 1777 -p ${TMPDIR} 2>/dev/null
# vmpath is the path to the emulator/original system image
diskfile=${vmpath}
@@ -58,7 +58,13 @@ VIRTCMD="${emulator}"
case "${emulator}" in
dosbox*|Dosbox*)
tar -xpzf ${diskfile} -C "${TMPDIR}"
- VIRTCMDOPTS="${VIRTCMDOPTS} ${TMPDIR}"
+ emudir=$(ls ${TMPDIR})
+ [ $(echo ${filenumber}|wc|awk '{print $2}') -eq 1 ] && \
+ TMPDIR=${TMPDIR}/${emudir}
+ echo "# empty" > ${TMPDIR}/dosbox.conf
+ VIRTCMDOPTS="${emulator#*dosbox}"
+ VIRTCMDOPTS="${VIRTCMDOPTS} -conf ${TMPDIR}/dosbox.conf -fullscreen"
+ VIRTCMD="dosbox"
;;
SheepShaver*|sheepshaver*)
[ "x${rombios}" != "x" ] && rom="-rom ${xmlpath}${rombios}"
diff --git a/src/os-plugins/plugins/vmchooser/files/run-virt.sh b/src/os-plugins/plugins/vmchooser/files/run-virt.sh
index e38c0f19..154714c6 100644
--- a/src/os-plugins/plugins/vmchooser/files/run-virt.sh
+++ b/src/os-plugins/plugins/vmchooser/files/run-virt.sh
@@ -214,7 +214,7 @@ xmlvirt=$(grep -o 'virtualmachine param=.*"' ${xmlfile} \
# choose the proper virtualization/emulator plugin
[ "x${xmlvirt}" != "x" -a "x${xmlvirt}" != "xqemukvm" -a \
"x${xmlvirt}" != "xvirtualbox" -a "x${xmlvirt}" != "xvmware" ] && \
- xmlvirt="emulator"
+ xmlvirt="emufe"
# make a guess from the filename extension if ${xmlvirt} is empty
# (not set within the XML file)