#!/bin/bash
### BEGIN BOOT SCRIPT INFO
#Long-Name: ARAnyM
### END BOOT SCRIPT INFO
### BEGIN BOOT SCRIPT INSTALLATION DEFAULTS
#Launch-Mode: gui-only
### END BOOT SCRIPT INSTALLATION DEFAULTS
#
#This script uses a standard run scriptlet called RUN_ARANYM, which is mainly
#there to allow changing the version by setting $ARANYM_VARIANT; there is
#usually no need to call run_aranym in it, and it is possible to omit RUN_ARANYM
#for images that use the default ARAnyM version.
#
SCRIPT_ARGS=("$@")

. bootscriptfunctions.sh

run_aranym()
{
	if [ "$ARANYM_VARIANT" ]
	then
		ARANYM_VARIANT_FULL="-$ARANYM_VARIANT"
	fi
	exec aranym"$ARANYM_VARIANT_FULL" -c aranym.cfg "$@" "${SCRIPT_ARGS[@]}"
}

OPTIONAL_SCRIPTLET=1
OPTIONAL_RUN=1
call_run_scriptlet aranym
