#!/bin/bash# Remount SD with forced Sync, does this really work?
mount -o sync,remount /dev/mmcsd/disc0/part1 /mnt/sd/
# Run ScummVM, important this bit.
./scummvm.gph
# Sync the SD card to check that everything is written.
sync
# Return to the GPH menu screencd /usr/gp2x
exec /usr/gp2x/gp2xmenu