#!/bin/bash
### BEGIN BOOT SCRIPT INFO
#Long-Name: Tsugaru
### END BOOT SCRIPT INFO
### BEGIN BOOT SCRIPT INSTALLATION DEFAULTS
#Launch-Mode: gui-and-terminal
### END BOOT SCRIPT INSTALLATION DEFAULTS
#
#This script supports an optional standard run scriptlet called RUN_TSUGARU,
#which should end with a call to run_tsugaru (which passes its options to
#Tsugaru_CUI). If only the standard image names are being used and no
#non-default options are required, the run scriptlet isn't required.
#
#Standard floppy image base names:
#
#fd0
#fd1
#
#Supported extensions: .d77 .img
#
#Standard hard disk image base names:
#
#hd0
#hd1
#hd2
#hd3
#hd4
#hd5
#hd6
#
#Supported extensions: .img
#
#Non-disk files required:
#
#cmos.dat	CMOS/NVRAM image
#roms		link to fmtowns/SUPPORT/roms


. bootscriptfunctions.sh

SCRIPT_ARGS=("$@")

_IMG_SUFFIXES=".d77 .img"
_OPTIONAL_IMG_OPTS="fd0 fd1 hd0 hd1 hd2 hd3 hd4 hd5 hd6"
EMU_CMD=Tsugaru_CUI
def_run_func tsugaru roms -cmos cmos.dat
OPTIONAL_SCRIPTLET=1
OPTIONAL_RUN=1
call_run_scriptlet tsugaru
