#!/bin/sh BOCHS=/usr/local/bin/bochs DLXPATH=/usr/local/bochs/dlxlinux 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 echo Running bochs # ok now try it $BOCHS