#!/bin/bash # # Script for launching virtualjaguar # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source /lib/gentoo/functions.sh || exit 1 shopt -s nullglob if [[ ! -d ~/.vj/bios ]] ; then mkdir -p ~/.vj/bios fi if [[ ! -d ~/.vj/eeproms ]] ; then mkdir -p ~/.vj/eeproms fi if [[ ! -d ~/.vj/ROMs ]] ; then mkdir -p ~/.vj/ROMs fi cd ~/.vj # check for bios if [[ -z "`cd ./bios && ls`" ]] ; then # if the bios directory is empty, then ... well ... echo eerror " Put your BIOS file into ~/.vj/bios/" eerror " or virtualjaguar will not work!" exit 1 fi # execute program (with args) exec GENTOODIR/vj "$@"