Bochs/bochs/build/linux/bochs-dlx

37 lines
813 B
Bash
Executable File

#!/bin/sh
BOCHS=/usr/local/bin/bochs
DLXPATH=/usr/local/bochs/dlxlinux
cat <<EOF
------------------------------------------------------
Starting DLX Linux in the Bochs x86 Emulator
------------------------------------------------------
EOF
echo -n "Checking for bochs binary..."
if test ! -x $BOCHS; then
echo FAILED
echo ERROR: I could not find bochs in $BOCHS
exit 1
fi
echo ok
echo -n "Checking for DLX linux directory..."
if test ! -d $DLXPATH; then
echo FAILED
echo ERROR: I could not find the DLX linux directory.
exit 1
fi
echo ok
echo Entering $DLXPATH
cd $DLXPATH
# ok now try it
$BOCHS
cat <<EOF
------------------------------------------------------
DLX Linux is finished. Log information is written to
$DLXPATH/bochsout.txt.
------------------------------------------------------
EOF