diff --git a/kernel/emulate b/kernel/emulate index 1150071..2bade6c 100755 --- a/kernel/emulate +++ b/kernel/emulate @@ -11,10 +11,12 @@ set -e cd ../emulation -# -f makes it so it won't error out if the file doesn't exist -rm -f bochsrc -cp bochsrc.template bochsrc +if [[ "$1" = "x86" ]]; then + # -f makes it so it won't error out if the file doesn't exist + rm -f bochsrc + cp bochsrc.template bochsrc -sed -i "s@%{BUILT_FILE}@aphrodite-$1.iso@g" bochsrc + sed -i "s@%{BUILT_FILE}@aphrodite-$1.iso@g" bochsrc -bochs -q \ No newline at end of file + bochs -q +fi \ No newline at end of file